1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

rule out empty string for symbol (#10712)

This commit is contained in:
Brad Decker 2021-03-24 17:04:15 -05:00 committed by Dan Miller
parent c865804a26
commit 6563339cbc

View File

@ -88,7 +88,9 @@ export default function ConfirmApprove() {
? getCustomTxParamsData(data, { customPermissionAmount, decimals })
: null;
return tokenSymbol ? (
return tokenSymbol === undefined ? (
<Loading />
) : (
<ConfirmTransactionBase
toAddress={toAddress}
identiconAddress={tokenAddress}
@ -142,7 +144,5 @@ export default function ConfirmApprove() {
hideSenderToRecipient
customTxParamsData={customData}
/>
) : (
<Loading />
);
}