diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-02-03 12:16:28 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-02-03 12:17:13 -0300 |
commit | cdfa9b585a220353114924477a300fb6d3e50df8 (patch) | |
tree | e4831292bb2d6f762a7fbb00a9e814dd61f29ff6 /web/react/components/login_username.jsx | |
parent | 6a3806fe9d03abdfa1eb30fc62c7388a6922b60f (diff) | |
download | chat-cdfa9b585a220353114924477a300fb6d3e50df8.tar.gz chat-cdfa9b585a220353114924477a300fb6d3e50df8.tar.bz2 chat-cdfa9b585a220353114924477a300fb6d3e50df8.zip |
Messages for SocketStore and small fixes
Diffstat (limited to 'web/react/components/login_username.jsx')
-rw-r--r-- | web/react/components/login_username.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/react/components/login_username.jsx b/web/react/components/login_username.jsx index f787490fa..4bd9254c6 100644 --- a/web/react/components/login_username.jsx +++ b/web/react/components/login_username.jsx @@ -89,9 +89,9 @@ export default class LoginUsername extends React.Component { } }, (err) => { - if (err.message === 'api.user.login.not_verified.app_error') { + if (err.id === 'api.user.login.not_verified.app_error') { state.serverError = formatMessage(holders.verifyEmailError); - } else if (err.message === 'store.sql_user.get_by_username.app_error') { + } else if (err.id === 'store.sql_user.get_by_username.app_error') { state.serverError = formatMessage(holders.userNotFoundError); } else { state.serverError = err.message; |