aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-08-20 23:06:01 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-08-23 02:08:09 +0800
commit456f2faf4f1e95a618c480d373d87b0a32c97782 (patch)
treef2858ab817453c6ec42a5d5675a17d880dbfc972 /ui/app/components
parentbabd59a2dc64e15ef2a415e349ef12d5b995e2e7 (diff)
downloadtangerine-wallet-browser-456f2faf4f1e95a618c480d373d87b0a32c97782.tar
tangerine-wallet-browser-456f2faf4f1e95a618c480d373d87b0a32c97782.tar.gz
tangerine-wallet-browser-456f2faf4f1e95a618c480d373d87b0a32c97782.tar.bz2
tangerine-wallet-browser-456f2faf4f1e95a618c480d373d87b0a32c97782.tar.lz
tangerine-wallet-browser-456f2faf4f1e95a618c480d373d87b0a32c97782.tar.xz
tangerine-wallet-browser-456f2faf4f1e95a618c480d373d87b0a32c97782.tar.zst
tangerine-wallet-browser-456f2faf4f1e95a618c480d373d87b0a32c97782.zip
Handle case where keyring is missing in AccountDetailsModal
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/modals/account-details-modal.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/components/modals/account-details-modal.js b/ui/app/components/modals/account-details-modal.js
index cc90cf578..bc577fda0 100644
--- a/ui/app/components/modals/account-details-modal.js
+++ b/ui/app/components/modals/account-details-modal.js
@@ -61,7 +61,7 @@ AccountDetailsModal.prototype.render = function () {
let exportPrivateKeyFeatureEnabled = true
// This feature is disabled for hardware wallets
- if (keyring.type.search('Hardware') !== -1) {
+ if (keyring && keyring.type.search('Hardware') !== -1) {
exportPrivateKeyFeatureEnabled = false
}