1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +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 GitHub
parent 1cfa58287c
commit a16841f6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 />
);
}