Merge branch 'verifications-silent' into 'develop'

checkEmailAvailability: fail silently

See merge request soapbox-pub/soapbox-fe!1433
ci-review-rules
Alex Gleason 2022-05-20 15:19:55 +00:00
commit da68610ee1
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -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 }));
};
}