From 34887a4e49b94b7525acd5e034c9e6db82805b49 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 21 Nov 2018 15:38:32 +0100 Subject: [PATCH] Added missing case --- src/actions/SelectedAccountActions.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/actions/SelectedAccountActions.js b/src/actions/SelectedAccountActions.js index c3db8d7c..117ae3ea 100644 --- a/src/actions/SelectedAccountActions.js +++ b/src/actions/SelectedAccountActions.js @@ -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 {