mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
Harden keyring type check in EthOverview (#13711)
This commit is contained in:
parent
bf8f331297
commit
8eb2130487
@ -55,7 +55,7 @@ const EthOverview = ({ className }) => {
|
|||||||
});
|
});
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
const keyring = useSelector(getCurrentKeyring);
|
const keyring = useSelector(getCurrentKeyring);
|
||||||
const usingHardwareWallet = isHardwareKeyring(keyring.type);
|
const usingHardwareWallet = isHardwareKeyring(keyring?.type);
|
||||||
const balanceIsCached = useSelector(isBalanceCached);
|
const balanceIsCached = useSelector(isBalanceCached);
|
||||||
const showFiat = useSelector(getShouldShowFiat);
|
const showFiat = useSelector(getShouldShowFiat);
|
||||||
const selectedAccount = useSelector(getSelectedAccount);
|
const selectedAccount = useSelector(getSelectedAccount);
|
||||||
|
Loading…
Reference in New Issue
Block a user