validate otp
This commit is contained in:
@@ -2,8 +2,6 @@ import { useState, ReactNode } from 'react';
|
||||
import { Navigate, useLocation } from 'react-router-dom';
|
||||
// hooks
|
||||
import useAuth from '../hooks/useAuth';
|
||||
// pages
|
||||
import Login from '../pages/auth/Login';
|
||||
// components
|
||||
import LoadingScreen from '../components/LoadingScreen';
|
||||
|
||||
@@ -26,7 +24,7 @@ export default function AuthGuard({ children }: AuthGuardProps) {
|
||||
if (pathname !== requestedLocation) {
|
||||
setRequestedLocation(pathname);
|
||||
}
|
||||
return <Navigate to="/auth/login" replace={true}/>;
|
||||
return <Navigate to="/auth/login" replace={true} />;
|
||||
}
|
||||
|
||||
if (requestedLocation && pathname !== requestedLocation) {
|
||||
|
||||
Reference in New Issue
Block a user