diff --git a/src/views/Wallet/components/SelectedAccount/index.js b/src/views/Wallet/components/SelectedAccount/index.js index 46e68271..98f5c092 100644 --- a/src/views/Wallet/components/SelectedAccount/index.js +++ b/src/views/Wallet/components/SelectedAccount/index.js @@ -20,7 +20,7 @@ export type Props = StateProps & DispatchProps; const SelectedAccount = (props: Props) => { const device = props.wallet.selectedDevice; if (!device || !device.state) { - return (
); + return (); } const accountState = props.selectedAccount; @@ -37,52 +37,40 @@ const SelectedAccount = (props: Props) => { // case 1: device is connected but discovery not started yet (probably waiting for auth) if (device.available) { return ( -
- -
+ ); } // case 2: device is unavailable (created with different passphrase settings) account cannot be accessed return ( -
- -
+ ); } // case 3: device is disconnected return ( -
- -
+ ); } if (discovery.waitingForBackend) { // case 4: backend is not working return ( -
- -
+ ); } if (discovery.completed) { // case 5: account not found and discovery is completed return ( -
- -
+ ); } // case 6: discovery is not completed yet return ( -
- -
+ ); }