diff --git a/apps/app/components/command-palette/change-interface-theme.tsx b/apps/app/components/command-palette/change-interface-theme.tsx index 489d8ac31..34ebf3562 100644 --- a/apps/app/components/command-palette/change-interface-theme.tsx +++ b/apps/app/components/command-palette/change-interface-theme.tsx @@ -28,13 +28,13 @@ export const ChangeInterfaceTheme: React.FC = ({ setIsPaletteOpen }) => { setTheme(newTheme); - mutateUser((prevData) => { + mutateUser((prevData: any) => { if (!prevData) return prevData; return { ...prevData, theme: { - ...prevData.theme, + ...prevData?.theme, theme: newTheme, }, };