|
|
|
@ -110,13 +110,6 @@ const getAccountStatus = (state: State, selectedAccount: SelectedAccountState):
|
|
|
|
|
shouldRender: false,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// case 6: discovery is not completed yet
|
|
|
|
|
return {
|
|
|
|
|
type: 'info',
|
|
|
|
|
title: 'Loading accounts...',
|
|
|
|
|
shouldRender: false,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Additional status: account does exists and it's visible but shouldn't be active
|
|
|
|
@ -136,15 +129,6 @@ const getAccountStatus = (state: State, selectedAccount: SelectedAccountState):
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Additional status: account does exists, but waiting for discovery to complete
|
|
|
|
|
if (discovery && !discovery.completed) {
|
|
|
|
|
return {
|
|
|
|
|
type: 'info',
|
|
|
|
|
title: 'Loading accounts...',
|
|
|
|
|
shouldRender: true,
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|