diff options
Diffstat (limited to 'ui/app/components/main_panel/index.js')
-rw-r--r-- | ui/app/components/main_panel/index.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/ui/app/components/main_panel/index.js b/ui/app/components/main_panel/index.js index 1948535..2949b1b 100644 --- a/ui/app/components/main_panel/index.js +++ b/ui/app/components/main_panel/index.js @@ -50,11 +50,14 @@ export default class MainPanel extends React.Component { removeAccount(account) { Account.remove(account).then( newActiveAccount => { - console.log(newActiveAccount) - this.setState({ - account: newActiveAccount, - accounts: Account.list - }) + if (newActiveAccount == null) { + App.start() + } else { + this.setState({ + account: newActiveAccount, + accounts: Account.list + }) + } }, error => { console.log(error) |