Merge branch 'Live-dev-patch-33042' into 'dev'

Update LayoutBadgeImageView.tsx

See merge request nitro/nitro-react!98
This commit is contained in:
Layne 2022-10-27 12:26:25 +00:00
commit 7b7c054c78

View File

@ -37,7 +37,7 @@ export const LayoutBadgeImageView: FC<LayoutBadgeImageViewProps> = props =>
if(imageElement)
{
newStyle.backgroundImage = (isGroup) ? imageElement.src : `url(${ GetConfiguration<string>('badge.asset.url').replace('%badgename%', badgeCode.toString()) })`;
newStyle.backgroundImage = `url(${ (isGroup) ? imageElement.src : GetConfiguration<string>('badge.asset.url').replace('%badgename%', badgeCode.toString())})`;
newStyle.width = imageElement.width;
newStyle.height = imageElement.height;