kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Merge branch 'verifications-silent' into 'develop'
checkEmailAvailability: fail silently See merge request soapbox-pub/soapbox-fe!1433environments/review-develop-3zknud/deployments/21
commit
da68610ee1
|
@ -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 }));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue