From 50f8a182e60b929f9d7d32e79c098b9ab3a6d983 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Thu, 16 Aug 2018 21:11:01 +0200 Subject: [PATCH] Fixed rendering function --- src/js/views/Wallet/components/LeftNavigation/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/js/views/Wallet/components/LeftNavigation/index.js b/src/js/views/Wallet/components/LeftNavigation/index.js index 7cfec80c..9327c554 100644 --- a/src/js/views/Wallet/components/LeftNavigation/index.js +++ b/src/js/views/Wallet/components/LeftNavigation/index.js @@ -81,8 +81,9 @@ class LeftNavigation extends Component { } shouldRenderAccounts() { + const { network } = this.props.location; const { selectedDevice } = this.props.wallet; - return selectedDevice && !this.state.shouldRenderDeviceSelection && this.state.animationType === 'slide-left'; + return selectedDevice && network && !this.state.shouldRenderDeviceSelection && this.state.animationType === 'slide-left'; } shouldRenderCoins() { @@ -98,8 +99,8 @@ class LeftNavigation extends Component { {this.state.shouldRenderDeviceSelection && this.getMenuTransition() } - {/* {this.shouldRenderAccounts && this.getMenuTransition()} */} - {this.shouldRenderCoins && } + {this.shouldRenderAccounts() && this.getMenuTransition()} + {this.shouldRenderCoins() && }