From 56cff1a91a04b5454ce3cddc6c05e19424b55836 Mon Sep 17 00:00:00 2001 From: David Walsh Date: Thu, 12 Nov 2020 10:45:54 -0600 Subject: [PATCH] Fix unnecessary keyring check --- .../account-details-modal/account-details-modal.component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js b/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js index e3b874d4c..f3b6d5586 100644 --- a/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js +++ b/ui/app/components/app/modals/account-details-modal/account-details-modal.component.js @@ -37,7 +37,7 @@ export default class AccountDetailsModal extends Component { let exportPrivateKeyFeatureEnabled = true // This feature is disabled for hardware wallets - if (keyring && keyring?.type?.search('Hardware') !== -1) { + if (keyring?.type?.search('Hardware') !== -1) { exportPrivateKeyFeatureEnabled = false }