SelectedAccount: display notification if network is not set yet

pull/69/head
Szymon Lesisz 6 years ago
parent 012e222c25
commit 61528af745

@ -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 (<Notification type="info" title="Loading account state..." />);
const blockchain = props.blockchain.find(b => b.name === network.network);
if (blockchain && !blockchain.connected) {

Loading…
Cancel
Save