rule out empty string for symbol (#10712)

feature/default_network_editable
Brad Decker 4 years ago committed by GitHub
parent 1cfa58287c
commit a16841f6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      ui/app/pages/confirm-approve/confirm-approve.js

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

Loading…
Cancel
Save