mirror of
https://github.com/wassname/talk.git
synced 2026-08-08 11:28:12 +08:00
It uses message and not translation key.
This commit is contained in:
@@ -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}`)));
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user