Clean up debug logs
This commit is contained in:
parent
480de976ef
commit
8e7a3fbe35
2 changed files with 0 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue