PR clean up
This commit is contained in:
parent
008f73fec2
commit
534d84ef88
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ import React from 'react';
|
|||
|
||||
type Props = {
|
||||
tokens: Object,
|
||||
children: any,
|
||||
children: string, // e.g. "Read %faq_link% for more detail"
|
||||
};
|
||||
|
||||
export default function I18nMessage(props: Props) {
|
||||
|
@ -12,7 +12,7 @@ export default function I18nMessage(props: Props) {
|
|||
matchingGroups = message.match(regexp);
|
||||
|
||||
if (!matchingGroups) {
|
||||
return <React.Fragment>{message}</React.Fragment>;
|
||||
return message;
|
||||
}
|
||||
|
||||
const messageSubstrings = props.children.split(regexp),
|
||||
|
|
|
@ -28,7 +28,7 @@ class RewardSummary extends React.Component<Props> {
|
|||
You have %credit_amount% in unclaimed rewards.
|
||||
</I18nMessage>
|
||||
) : (
|
||||
<React.Fragment>{__('You have no rewards available, please check')}</React.Fragment>
|
||||
__('You have no rewards available.')
|
||||
)}
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Reference in a new issue