From 54603f62a1faee13740daef22331c08cdb47f573 Mon Sep 17 00:00:00 2001 From: Vasek Mlejnsky Date: Fri, 21 Sep 2018 08:45:02 +0200 Subject: [PATCH] Fix issue when "DeviceMenu" couldn't be closed when device was in a bootloader mode --- .../Wallet/components/LeftNavigation/index.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/views/Wallet/components/LeftNavigation/index.js b/src/views/Wallet/components/LeftNavigation/index.js index 15d2821f..14d5dfc5 100644 --- a/src/views/Wallet/components/LeftNavigation/index.js +++ b/src/views/Wallet/components/LeftNavigation/index.js @@ -93,6 +93,10 @@ class LeftNavigation extends Component { shouldRenderDeviceSelection: false, animationType: 'slide-right', }); + } else if (selectedDevice.features.bootloader_mode) { + this.setState({ + shouldRenderDeviceSelection: false, + }); } } @@ -102,19 +106,9 @@ class LeftNavigation extends Component { { - console.warn('ON ENTER'); - }} - onEntering={() => { - console.warn('ON ENTERING (ACTIVE)'); - }} onExit={() => { - console.warn('ON EXIT'); window.dispatchEvent(new Event('resize')); }} - onExiting={() => { - console.warn('ON EXITING (ACTIVE)'); - }} onExited={() => window.dispatchEvent(new Event('resize'))} classNames={this.state.animationType} appear={false}