fix: eslint error
This commit is contained in:
+2
-2
@@ -90,7 +90,7 @@ const Login = ({ mode }: { mode: SystemMode }) => {
|
||||
const [isPasswordShown, setIsPasswordShown] = useState(false)
|
||||
const [errorState, setErrorState] = useState<ErrorType | null>(null)
|
||||
|
||||
const { mutate, isPending, isError, isSuccess } = useAuthMutation.login()
|
||||
const { login } = useAuthMutation()
|
||||
|
||||
// Vars
|
||||
const darkImg = '/images/pages/auth-mask-dark.png'
|
||||
@@ -132,7 +132,7 @@ const Login = ({ mode }: { mode: SystemMode }) => {
|
||||
const handleClickShowPassword = () => setIsPasswordShown(show => !show)
|
||||
|
||||
const onSubmit: SubmitHandler<FormData> = async (data: FormData) => {
|
||||
mutate(data)
|
||||
login.mutate(data)
|
||||
|
||||
const redirectURL = searchParams.get('redirectTo') ?? '/'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user