fix lbc-message to prevent incorrect 'Credits' replacement
This commit is contained in:
parent
ded48bcc3d
commit
44195ec239
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ export default function LbcMessage(props: Props) {
|
||||||
return (
|
return (
|
||||||
<I18nMessage tokens={{ lbc: amount ? <CreditAmount badge noFormat amount={amount} /> : undefined }}>
|
<I18nMessage tokens={{ lbc: amount ? <CreditAmount badge noFormat amount={amount} /> : undefined }}>
|
||||||
{/* Catch any rogue LBC's left */}
|
{/* Catch any rogue LBC's left */}
|
||||||
{tokenizedMessage.replace(/LBC/g, 'Credits')}
|
{tokenizedMessage.replace(/\sLBC/g, ' Credits')}
|
||||||
</I18nMessage>
|
</I18nMessage>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue