checkEmailAvailability: fail silently

This commit is contained in:
Alex Gleason 2022-05-20 09:58:59 -05:00
parent 0a1457c26b
commit bd6ce38e5d
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
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}`, { return api(getState).get(`/api/v1/pepe/account/exists?email=${email}`, {
headers: { Authorization: `Bearer ${token}` }, headers: { Authorization: `Bearer ${token}` },
}).finally(() => dispatch({ type: SET_LOADING, value: false })); })
.catch(() => {})
.then(() => dispatch({ type: SET_LOADING, value: false }));
}; };
} }