Skip to content

Commit 541c46e

Browse files
committed
Fixing the Logout/currentUser race condition.
1 parent 08ef7e2 commit 541c46e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ParsePatches.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ var patches = {
8080
});
8181
},
8282
logOut: function() {
83-
var promise = oldLogOut();
84-
LocalSubscriptions.currentUser.update();
85-
return promise;
83+
return oldLogOut().then(function() {
84+
LocalSubscriptions.currentUser.update();
85+
});
8686
},
8787
};
8888

0 commit comments

Comments
 (0)