diff --git a/src/components/Icon/BankIcons.ts b/src/components/Icon/BankIcons.ts index d4401184783b..ece9a865629b 100644 --- a/src/components/Icon/BankIcons.ts +++ b/src/components/Icon/BankIcons.ts @@ -99,9 +99,15 @@ function getAssetIcon(bankNameKey: BankNameKey, isCard: boolean): React.FC { - const condensedValue = value.replace(/\s/g, ''); - return bankName === value || bankName.includes(value) || bankName.startsWith(value) || - bankName === condensedValue || bankName.includes(condensedValue) || bankName.startsWith(condensedValue); + const condensedValue = value.replace(/\s/g, ''); + return ( + bankName === value || + bankName.includes(value) || + bankName.startsWith(value) || + bankName === condensedValue || + bankName.includes(condensedValue) || + bankName.startsWith(condensedValue) + ); }); return (bank?.[0] as BankNameKey) ?? ''; }