diff --git a/components/toggle-theme.tsx b/components/toggle-theme.tsx index 55864df..491aeeb 100644 --- a/components/toggle-theme.tsx +++ b/components/toggle-theme.tsx @@ -29,7 +29,8 @@ export function ModeToggle() { // Use resolvedTheme to get the actual theme value (light/dark), not 'system' const currentTheme = resolvedTheme || theme - if (!mounted) { + // Don't render the interactive toggle until both mounted and theme is resolved + if (!mounted || !resolvedTheme) { return (