Harden keyring type check in EthOverview (#13711)

feature/default_network_editable
ryanml 3 years ago committed by GitHub
parent bf8f331297
commit 8eb2130487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/components/app/wallet-overview/eth-overview.js

@ -55,7 +55,7 @@ const EthOverview = ({ className }) => {
});
const history = useHistory();
const keyring = useSelector(getCurrentKeyring);
const usingHardwareWallet = isHardwareKeyring(keyring.type);
const usingHardwareWallet = isHardwareKeyring(keyring?.type);
const balanceIsCached = useSelector(isBalanceCached);
const showFiat = useSelector(getShouldShowFiat);
const selectedAccount = useSelector(getSelectedAccount);

Loading…
Cancel
Save