Merge branch 'verifications-silent' into 'develop'

checkEmailAvailability: fail silently

See merge request soapbox-pub/soapbox-fe!1433
This commit is contained in:
Alex Gleason 2022-05-20 15:19:55 +00:00
commit da68610ee1
1 changed files with 3 additions and 1 deletions

View File

@ -244,7 +244,9 @@ function checkEmailAvailability(email) {
return api(getState).get(`/api/v1/pepe/account/exists?email=${email}`, {
headers: { Authorization: `Bearer ${token}` },
}).finally(() => dispatch({ type: SET_LOADING, value: false }));
})
.catch(() => {})
.then(() => dispatch({ type: SET_LOADING, value: false }));
};
}