checkEmailAvailability: fail silently
This commit is contained in:
parent
0a1457c26b
commit
bd6ce38e5d
|
@ -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 }));
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue