fix lbc-message to prevent incorrect 'Credits' replacement

This commit is contained in:
Sean Yesmunt 2021-04-30 12:38:53 -04:00
parent ded48bcc3d
commit 44195ec239

View file

@ -20,7 +20,7 @@ export default function LbcMessage(props: Props) {
return (
<I18nMessage tokens={{ lbc: amount ? <CreditAmount badge noFormat amount={amount} /> : undefined }}>
{/* Catch any rogue LBC's left */}
{tokenizedMessage.replace(/LBC/g, 'Credits')}
{tokenizedMessage.replace(/\sLBC/g, ' Credits')}
</I18nMessage>
);
}