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(); const password = this.password();
app.session.login(email, password).then( app.session.login(email, password).then(
() => { null,
this.hide();
if (this.props.onlogin) this.props.onlogin();
},
response => { response => {
this.loading = false; this.loading = false;