1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-12-25 00:18:07 +00:00

SelectedAccount: display notification if network is not set yet

This commit is contained in:
Szymon Lesisz 2018-09-21 12:41:51 +02:00
parent 012e222c25
commit 61528af745

View File

@ -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) {