refactor: remove redundant errors setting in SignUpForm

This commit is contained in:
kasia.oczkowska
2024-12-19 13:23:33 +00:00
parent ce4e4b4885
commit ebc21e90ac
4 changed files with 3 additions and 47 deletions

View File

@@ -9,7 +9,6 @@ import { yupResolver } from '@hookform/resolvers/yup';
import { useQueryClient } from '@tanstack/react-query';
import Link from '@mui/material/Link';
import { getGeneralErrorMessage } from 'helpers/errors';
import useFormatMessage from 'hooks/useFormatMessage';
import useInstallation from 'hooks/useInstallation';
import * as URLS from 'config/urls';
@@ -77,8 +76,7 @@ function InstallationForm() {
});
} catch (error) {
const errors = error?.response?.data?.errors;
throw errors;
throw errors || error;
}
};