diff --git a/src/app/FamilyProvider.tsx b/src/app/FamilyProvider.tsx index b9c5ee9..6958779 100644 --- a/src/app/FamilyProvider.tsx +++ b/src/app/FamilyProvider.tsx @@ -49,6 +49,12 @@ export function FamilyProvider({ children: providerChildren }: { children: React const [memberCount, setMemberCount] = useState(2); useEffect(() => { + // Skip family check for admin pages + if (typeof window !== "undefined" && window.location.pathname.startsWith("/admin")) { + setLoading(false); + return; + } + async function fetchFamilyData() { try { // Get current session from database