diff options
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/login.js | 2 | ||||
-rw-r--r-- | ui/app/components/main_panel/index.js | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/ui/app/components/login.js b/ui/app/components/login.js index 562ab5a..059551f 100644 --- a/ui/app/components/login.js +++ b/ui/app/components/login.js @@ -356,7 +356,7 @@ class Login extends React.Component { } doLogin() { - let account = Account.find(this.state.username) + let account = Account.find_or_add(this.state.username) account.login(this.state.password).then( account => { this.setState({loading: false}) diff --git a/ui/app/components/main_panel/index.js b/ui/app/components/main_panel/index.js index a05f307..775dff6 100644 --- a/ui/app/components/main_panel/index.js +++ b/ui/app/components/main_panel/index.js @@ -32,7 +32,6 @@ export default class MainPanel extends React.Component { componentWillMount() { if (this.props.initialAccount) { - Account.add(this.props.initialAccount) this.setState({ account: this.props.initialAccount, accounts: Account.list |