re-direct to sign in when email verification is off. add proptypes

This commit is contained in:
Riley Davis
2017-02-03 12:50:01 -07:00
parent 8f374852ac
commit 3441ec36c6
2 changed files with 137 additions and 97 deletions
-4
View File
@@ -85,10 +85,6 @@ export const fetchSignUp = (formData, redirectUri) => (dispatch) => {
coralApi('/users', {method: 'POST', body: formData, headers: {'X-Pym-Url': redirectUri}})
.then(({user}) => {
dispatch(signUpSuccess(user));
// setTimeout(() =>{
// dispatch(changeView('SIGNIN'));
// }, 3000);
})
.catch(error => {
dispatch(signUpFailure(lang.t(`error.${error.message}`)));