From 8eb21304877acb0c13c606a13602a332ca239abe Mon Sep 17 00:00:00 2001 From: ryanml Date: Tue, 22 Feb 2022 08:59:31 -0700 Subject: [PATCH] Harden keyring type check in EthOverview (#13711) --- ui/components/app/wallet-overview/eth-overview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/components/app/wallet-overview/eth-overview.js b/ui/components/app/wallet-overview/eth-overview.js index 1ecfe4719..001f84694 100644 --- a/ui/components/app/wallet-overview/eth-overview.js +++ b/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);