It uses message and not translation key.

This commit is contained in:
gaba
2017-02-17 14:19:30 -08:00
parent 5a09beb727
commit 9f168e627a
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ export const fetchSignUp = (formData, redirectUri) => (dispatch) => {
dispatch(signUpSuccess(user));
})
.catch(error => {
dispatch(signUpFailure(lang.t(`error.${error.translation_key}`)));
dispatch(signUpFailure(lang.t(`error.${error.message}`)));
});
};
+1 -2
View File
@@ -136,7 +136,7 @@ router.post('/', (req, res, next) => {
res.status(201).json(user);
});
})
.catch(err => {
.catch((err) => {
next(err);
});
});
@@ -163,7 +163,6 @@ router.post('/:user_id/actions', authorization.needed(), (req, res, next) => {
res.status(201).json(action);
})
.catch((err) => {
console.log('Error', err);
next(err);
});
});