mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
SelectedAccount: display notification if network is not set yet
This commit is contained in:
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…
Reference in New Issue
Block a user