From d2f63becfa23d2f920146e29bd651e27554c07ae Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 16 Aug 2018 18:43:29 +0200 Subject: [PATCH] changed variable name --- src/js/views/Wallet/components/LeftNavigation/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/views/Wallet/components/LeftNavigation/index.js b/src/js/views/Wallet/components/LeftNavigation/index.js index ee2964cd..18335185 100644 --- a/src/js/views/Wallet/components/LeftNavigation/index.js +++ b/src/js/views/Wallet/components/LeftNavigation/index.js @@ -44,6 +44,7 @@ class LeftNavigation extends Component { componentWillReceiveProps() { const { selectedDevice } = this.props.wallet; const hasFeatures = selectedDevice && selectedDevice.features; + const deviceReady = hasFeatures && !selectedDevice.features.bootloader_mode && selectedDevice.features.initialized; if (this.props.deviceDropdownOpened) { this.setState({ shouldRenderDeviceSelection: true }); @@ -52,7 +53,7 @@ class LeftNavigation extends Component { shouldRenderDeviceSelection: false, animationType: 'slide-left', }); - } else if (selectedDevice && hasFeatures && !selectedDevice.features.bootloader_mode && selectedDevice.features.initialized) { + } else if (deviceReady) { this.setState({ shouldRenderDeviceSelection: false, animationType: 'slide-right',