sforkowany z mirror/soapbox
checkEmailAvailability: fail silently
rodzic
0a1457c26b
commit
bd6ce38e5d
|
@ -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 }));
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue