Don't hide login modal; wait for page to refresh

This commit is contained in:
Toby Zerner 2015-08-13 13:05:38 +09:30
parent ed234db09d
commit 64732b8488

View File

@ -117,10 +117,7 @@ export default class LogInModal extends Modal {
const password = this.password();
app.session.login(email, password).then(
() => {
this.hide();
if (this.props.onlogin) this.props.onlogin();
},
null,
response => {
this.loading = false;