From 70955b48d8f6ae6ee069955a53ba4e1864192fbd Mon Sep 17 00:00:00 2001 From: sriramveeraghanta Date: Mon, 14 Aug 2023 19:10:24 +0530 Subject: [PATCH] build fixes --- .../app/components/command-palette/change-interface-theme.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, }, };