chore: remove the unused hook

This commit is contained in:
Ahmed Bouhuolia
2024-05-15 14:03:34 +02:00
parent 3f68d11062
commit 4f30f72d36

View File

@@ -1,7 +1,7 @@
// @ts-nocheck // @ts-nocheck
import intl from 'react-intl-universal'; import intl from 'react-intl-universal';
import { Formik } from 'formik'; import { Formik } from 'formik';
import { Link, useHistory } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { Intent } from '@blueprintjs/core'; import { Intent } from '@blueprintjs/core';
import { AppToaster, FormattedMessage as T } from '@/components'; import { AppToaster, FormattedMessage as T } from '@/components';
@@ -40,19 +40,18 @@ export default function RegisterUserForm() {
authLoginMutate({ authLoginMutate({
crediential: values.email, crediential: values.email,
password: values.password, password: values.password,
}) }).catch(
.catch( ({
({ response: {
response: { data: { errors },
data: { errors },
},
}) => {
AppToaster.show({
message: intl.get('something_wentwrong'),
intent: Intent.SUCCESS,
});
}, },
); }) => {
AppToaster.show({
message: intl.get('something_wentwrong'),
intent: Intent.SUCCESS,
});
},
);
}) })
.catch( .catch(
({ ({