From 61528af745341736c5851bf2d239816810179d22 Mon Sep 17 00:00:00 2001 From: Szymon Lesisz Date: Fri, 21 Sep 2018 12:41:51 +0200 Subject: [PATCH] SelectedAccount: display notification if network is not set yet --- src/views/Wallet/components/SelectedAccount/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/Wallet/components/SelectedAccount/index.js b/src/views/Wallet/components/SelectedAccount/index.js index 9067b6b1..d1727dd2 100644 --- a/src/views/Wallet/components/SelectedAccount/index.js +++ b/src/views/Wallet/components/SelectedAccount/index.js @@ -33,7 +33,8 @@ const SelectedAccount = (props: Props) => { network } = accountState; - if (!network) return; // TODO: this shouldn't happen. change accountState reducer? + // corner case: accountState didn't finish loading state after LOCATION_CHANGE action + if (!network) return (); const blockchain = props.blockchain.find(b => b.name === network.network); if (blockchain && !blockchain.connected) {