mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-15 21:08:57 +00:00
Added missing case
This commit is contained in:
parent
827e5f14fa
commit
f53726c451
@ -108,7 +108,7 @@ const getAccountLoader = (state: State, selectedAccount: SelectedAccountState):
|
||||
|
||||
const getAccountNotification = (state: State, selectedAccount: SelectedAccountState): ?AccountStatus => {
|
||||
const device = state.wallet.selectedDevice;
|
||||
const { network } = selectedAccount;
|
||||
const { network, discovery } = selectedAccount;
|
||||
|
||||
if (device && network) {
|
||||
const blockchain = state.blockchain.find(b => b.shortcut === network.shortcut);
|
||||
@ -120,6 +120,16 @@ const getAccountNotification = (state: State, selectedAccount: SelectedAccountSt
|
||||
};
|
||||
}
|
||||
|
||||
if (discovery) {
|
||||
if (discovery && !discovery.completed) {
|
||||
return {
|
||||
type: 'info',
|
||||
title: 'Loading accounts...',
|
||||
shouldRender: true,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
// Additional status: account does exists and it's visible but shouldn't be active
|
||||
if (!device.connected) {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user