From bd6ce38e5d1dbc399d07cf30ab5d9f3c2c4fb348 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 20 May 2022 09:58:59 -0500 Subject: [PATCH] checkEmailAvailability: fail silently --- app/soapbox/actions/verification.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/soapbox/actions/verification.js b/app/soapbox/actions/verification.js index f90a5637a..8bd34b75c 100644 --- a/app/soapbox/actions/verification.js +++ b/app/soapbox/actions/verification.js @@ -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 })); }; }