mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Handle case where keyring is missing in AccountDetailsModal
This commit is contained in:
parent
babd59a2dc
commit
456f2faf4f
@ -61,7 +61,7 @@ AccountDetailsModal.prototype.render = function () {
|
|||||||
|
|
||||||
let exportPrivateKeyFeatureEnabled = true
|
let exportPrivateKeyFeatureEnabled = true
|
||||||
// This feature is disabled for hardware wallets
|
// This feature is disabled for hardware wallets
|
||||||
if (keyring.type.search('Hardware') !== -1) {
|
if (keyring && keyring.type.search('Hardware') !== -1) {
|
||||||
exportPrivateKeyFeatureEnabled = false
|
exportPrivateKeyFeatureEnabled = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user