diff --git a/src/app/(dashboard)/layout.tsx b/src/app/(dashboard)/layout.tsx index 4f2ff30..27be959 100644 --- a/src/app/(dashboard)/layout.tsx +++ b/src/app/(dashboard)/layout.tsx @@ -17,7 +17,9 @@ export default async function DashboardLayout({ let themePrefs: ThemePrefs = {}; try { const { account } = await createSessionClient(); - themePrefs = await account.getPrefs(); + const raw = await account.getPrefs(); + // getPrefs returns an Appwrite prototype object — must be a plain object for Server→Client prop + themePrefs = JSON.parse(JSON.stringify(raw)) as ThemePrefs; } catch { // use defaults if prefs unavailable }