fix: tokn timeout redirect
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
import React, { useState } from "react";
|
||||
import { motion, Variants } from "framer-motion";
|
||||
import { useNavigate } from "@tanstack/react-router";
|
||||
import { useApiMutation } from "../../utils/useApiRequest";
|
||||
@@ -52,12 +52,6 @@ const Login: React.FC = () => {
|
||||
disableBackdrop: false,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
if (phoneNumber && phoneNumber.length >= 10) {
|
||||
handleGetCaptcha();
|
||||
}
|
||||
}, [phoneNumber]);
|
||||
|
||||
const handleGetCaptcha = async () => {
|
||||
try {
|
||||
const data = await mutationCaptcha.mutateAsync({
|
||||
|
||||
Reference in New Issue
Block a user