diff --git a/frontend/app/mstore/userStore.ts b/frontend/app/mstore/userStore.ts index 1010b8361..b1ddc8b0f 100644 --- a/frontend/app/mstore/userStore.ts +++ b/frontend/app/mstore/userStore.ts @@ -240,18 +240,7 @@ class UserStore { resolve(response); }) .catch(async (e) => { - const err = await e.response?.json(); - runInAction(() => { - this.saving = false; - }); - const errStr = err.errors[0] - ? err.errors[0].includes('already exists') - ? this.t( - "This email is already linked to an account or team on OpenReplay and can't be used again.", - ) - : err.errors[0] - : this.t('Error saving user'); - toast.error(errStr); + toast.error(e.message || this.t("Failed to save user's data.")); reject(e); }) .finally(() => {