From e6260987cc8d093131488de42985017575effc79 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Jul 2015 16:53:08 +0100 Subject: [PATCH] some s/then/done/ --- src/controllers/templates/Login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/templates/Login.js b/src/controllers/templates/Login.js index 5543fbcf..07ace740 100644 --- a/src/controllers/templates/Login.js +++ b/src/controllers/templates/Login.js @@ -52,7 +52,7 @@ module.exports = { var cli = MatrixClientPeg.get(); this.setState({busy: true}); var that = this; - cli.loginFlows().then(function(result) { + cli.loginFlows().done(function(result) { that.setState({ flows: result.flows, currentStep: 1, @@ -75,7 +75,7 @@ module.exports = { MatrixClientPeg.get().login('m.login.password', { 'user': formVals.username, 'password': formVals.password - }).then(function(data) { + }).done(function(data) { // XXX: we assume this means we're logged in, but there could be a next stage MatrixClientPeg.replace(Matrix.createClient({ baseUrl: that.state.hs_url,