refactor: redirect to root page when no username or ip is provided in the unauthorized page

This commit is contained in:
Stavros
2025-06-25 20:26:57 +03:00
parent fae5e7919a
commit 1770eb3e8e

View File

@@ -20,7 +20,7 @@ export const UnauthorizedPage = () => {
const ip = searchParams.get("ip"); const ip = searchParams.get("ip");
if (!username && !ip) { if (!username && !ip) {
return <Navigate to="/login" />; return <Navigate to="/" />;
} }
const { t } = useTranslation(); const { t } = useTranslation();