From 4f30f72d36674462a0d8965d1faa627bfd072b9c Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Wed, 15 May 2024 14:03:34 +0200 Subject: [PATCH] chore: remove the unused hook --- .../containers/Authentication/Register.tsx | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/packages/webapp/src/containers/Authentication/Register.tsx b/packages/webapp/src/containers/Authentication/Register.tsx index e740471df..e787abcf8 100644 --- a/packages/webapp/src/containers/Authentication/Register.tsx +++ b/packages/webapp/src/containers/Authentication/Register.tsx @@ -1,7 +1,7 @@ // @ts-nocheck import intl from 'react-intl-universal'; import { Formik } from 'formik'; -import { Link, useHistory } from 'react-router-dom'; +import { Link } from 'react-router-dom'; import { Intent } from '@blueprintjs/core'; import { AppToaster, FormattedMessage as T } from '@/components'; @@ -40,19 +40,18 @@ export default function RegisterUserForm() { authLoginMutate({ crediential: values.email, password: values.password, - }) - .catch( - ({ - response: { - data: { errors }, - }, - }) => { - AppToaster.show({ - message: intl.get('something_wentwrong'), - intent: Intent.SUCCESS, - }); + }).catch( + ({ + response: { + data: { errors }, }, - ); + }) => { + AppToaster.show({ + message: intl.get('something_wentwrong'), + intent: Intent.SUCCESS, + }); + }, + ); }) .catch( ({