diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-04-26 11:07:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-26 11:07:19 -0400 |
commit | 1fef5bf5fe37f161959fbef5d53deccf0168cced (patch) | |
tree | 30a9fe10147c48587600be8a5b88c5ae5ac5d558 /webapp/actions/user_actions.jsx | |
parent | 8e6141152bd0978bfeb24dbfff05972f4d17fd08 (diff) | |
download | chat-1fef5bf5fe37f161959fbef5d53deccf0168cced.tar.gz chat-1fef5bf5fe37f161959fbef5d53deccf0168cced.tar.bz2 chat-1fef5bf5fe37f161959fbef5d53deccf0168cced.zip |
Redux bug fixes (#6243)
* Fix save teams dispatch
* Fix login when MFA is enabled but not active
* Fix JS error caused by using deleted team member
Diffstat (limited to 'webapp/actions/user_actions.jsx')
-rw-r--r-- | webapp/actions/user_actions.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx index 8a794bb0a..d810b4c2e 100644 --- a/webapp/actions/user_actions.jsx +++ b/webapp/actions/user_actions.jsx @@ -631,7 +631,7 @@ export function checkMfa(loginId, success, error) { checkMfaRedux(loginId)(dispatch, getState).then( (data) => { - if (data && success) { + if (data != null && success) { success(data); } else if (data == null && error) { const serverError = getState().requests.users.checkMfa.error; |