Clean up debug logs

This commit is contained in:
Manohar Gupta 2026-05-17 11:26:01 +05:30
parent 480de976ef
commit 8e7a3fbe35
2 changed files with 0 additions and 3 deletions

View file

@ -54,9 +54,7 @@ export function FamilyProvider({ children: providerChildren }: { children: React
return;
}
const path = window.location.pathname;
console.log("FamilyProvider: checking path =", path);
if (path.startsWith("/admin") || path === "/admin-login") {
console.log("FamilyProvider: skipping for admin page");
setLoading(false);
return;
}

View file

@ -34,7 +34,6 @@ export default function AdminLayout({ children }: { children: React.ReactNode })
if (isLoginPage) return;
const token = document.cookie.match(/tia_admin_session=([^;]+)/)?.[1];
console.log("AdminLayout: token =", token ? "found" : "NOT FOUND");
if (!token) {
router.push("/admin-login");
return;