fix: tokn timeout redirect

This commit is contained in:
2026-02-01 15:09:31 +03:30
parent 33a88b5372
commit c13a3042c1
2 changed files with 4 additions and 9 deletions

View File

@@ -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({