mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 21:21:19 +10:00
EmailVerification.duck uses storableError
This commit is contained in:
parent
13df1c3abb
commit
171c86d6eb
1 changed files with 2 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { storableError } from '../util/errors';
|
||||
import { fetchCurrentUser } from './user.duck';
|
||||
|
||||
// ================ Action types ================ //
|
||||
|
|
@ -64,5 +65,5 @@ export const verify = verificationToken => (dispatch, getState, sdk) => {
|
|||
.verifyEmail({ verificationToken })
|
||||
.then(() => dispatch(verificationSuccess()))
|
||||
.then(() => dispatch(fetchCurrentUser()))
|
||||
.catch(e => dispatch(verificationError(e)));
|
||||
.catch(e => dispatch(verificationError(storableError(e))));
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue