From 479a379b8e854329649b45dbc40f7bc35cfc01d7 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Tue, 15 Jan 2019 17:15:47 +0100 Subject: [PATCH] hide wallet type icon (standard/hidden) when passphrase feature is disabled --- src/views/Wallet/components/LeftNavigation/index.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/Wallet/components/LeftNavigation/index.js b/src/views/Wallet/components/LeftNavigation/index.js index cca5eab1..96660a38 100644 --- a/src/views/Wallet/components/LeftNavigation/index.js +++ b/src/views/Wallet/components/LeftNavigation/index.js @@ -184,6 +184,8 @@ class LeftNavigation extends React.PureComponent { const { selectedDevice } = props.wallet; const isDeviceAccessible = deviceUtils.isDeviceAccessible(selectedDevice); + const walletType = selectedDevice && !selectedDevice.useEmptyPassphrase ? 'hidden' : 'standard'; + return ( { isOpen={this.props.wallet.dropdownOpened} icon={( - + {selectedDevice && selectedDevice.features.passphrase_protection ? ( + ) : null + } {this.props.devices.length > 1 && ( {this.props.devices.length} )}