mirror of
https://github.com/Buriburizaem0n/admin-frontend-domain.git
synced 2026-02-05 13:10:08 +00:00
feat: refresh token
This commit is contained in:
@@ -7,7 +7,7 @@ export const ProtectedRoute = ({ children }: {
|
||||
const { profile } = useAuth();
|
||||
|
||||
if (!profile && window.location.pathname !== "/dashboard/login") {
|
||||
return <Navigate to="/dashboard/login" />;
|
||||
return <><Navigate to="/dashboard/login" />{children}</>;
|
||||
}
|
||||
|
||||
return children;
|
||||
|
||||
Reference in New Issue
Block a user