From c0e81f885930d92163669ec340d5dd870bc38956 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Mon, 27 Aug 2018 13:47:26 +0200 Subject: [PATCH] Fixed clicking on device menu --- .../components/LeftNavigation/components/DeviceMenu/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js b/src/js/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js index 2ed8ac88..9c1fa0c6 100644 --- a/src/js/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js +++ b/src/js/views/Wallet/components/LeftNavigation/components/DeviceMenu/index.js @@ -115,7 +115,7 @@ export class DeviceDropdown extends Component { } deviceMenuItems.push({ type: 'settings', label: 'Device settings' }); - if (selectedDevice.features.passphrase_protection && selectedDevice.connected && selected.available) { + if (selectedDevice.features.passphrase_protection && selectedDevice.connected && selectedDevice.available) { deviceMenuItems.push({ type: 'clone', label: 'Create hidden wallet' }); } //if (selected.remember) { @@ -124,7 +124,7 @@ export class DeviceDropdown extends Component { const deviceMenuButtons = deviceMenuItems.map((item, index) => ( -
this.onDeviceMenuClick(item, selected)}>{item.label}
+
this.onDeviceMenuClick(item, selectedDevice)}>{item.label}
)); currentDeviceMenu = deviceMenuButtons.length < 1 ? null : (