1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-17 17:42:41 +03:00

Merge pull request #1223 from matrix-org/rav/roomsettings_promise_usage

Fix RoomSettings save
This commit is contained in:
Richard van der Hoff
2017-07-14 14:47:14 +01:00
committed by GitHub

View File

@@ -298,7 +298,7 @@ module.exports = React.createClass({
// color scheme // color scheme
var p; var p;
p = this.saveColor(); p = this.saveColor();
if (!Promise.isFulfilled(p)) { if (!p.isFulfilled()) {
promises.push(p); promises.push(p);
} }
@@ -310,7 +310,7 @@ module.exports = React.createClass({
// encryption // encryption
p = this.saveEnableEncryption(); p = this.saveEnableEncryption();
if (!Promise.isFulfilled(p)) { if (!p.isFulfilled()) {
promises.push(p); promises.push(p);
} }