Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(auth): dispatch proper error on reset password
  • Loading branch information
djejaquino committed Oct 21, 2020
commit 2c5a27709236cd5f828c4710a393a03e570a3d3c
8 changes: 4 additions & 4 deletions src/actions/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -738,10 +738,10 @@ export const resetPassword = (dispatch, firebase, email) => {
if (err) {
switch (err.code) {
case 'auth/user-not-found':
dispatchLoginError(
dispatch,
new Error('The specified user account does not exist.')
)
dispatchLoginError(dispatch, {
...err,
message: 'The specified user account does not exist.'
})
break
default:
dispatchLoginError(dispatch, err)
Expand Down