Skip to content

Commit e626098

Browse files
committed
some s/then/done/
1 parent 9b6060a commit e626098

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/controllers/templates/Login.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ module.exports = {
5252
var cli = MatrixClientPeg.get();
5353
this.setState({busy: true});
5454
var that = this;
55-
cli.loginFlows().then(function(result) {
55+
cli.loginFlows().done(function(result) {
5656
that.setState({
5757
flows: result.flows,
5858
currentStep: 1,
@@ -75,7 +75,7 @@ module.exports = {
7575
MatrixClientPeg.get().login('m.login.password', {
7676
'user': formVals.username,
7777
'password': formVals.password
78-
}).then(function(data) {
78+
}).done(function(data) {
7979
// XXX: we assume this means we're logged in, but there could be a next stage
8080
MatrixClientPeg.replace(Matrix.createClient({
8181
baseUrl: that.state.hs_url,

0 commit comments

Comments
 (0)