Merge branch 'master' into approved-comments-queue

This commit is contained in:
Riley Davis
2017-04-27 09:42:28 -06:00
committed by GitHub
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -188,7 +188,13 @@ export const fetchSignUp = (formData, redirectUri) => (dispatch) => {
dispatch(signUpSuccess(user));
})
.catch(error => {
dispatch(signUpFailure(lang.t(`error.${error.message}`)));
let errorMessage = lang.t(`error.${error.message}`);
// if there is no translation defined, just show the error string
if (errorMessage === `error.${error.message}`) {
errorMessage = error.message;
}
dispatch(signUpFailure(errorMessage));
});
};