diff --git a/apps/main/src/pages/_app.tsx b/apps/main/src/pages/_app.tsx index ae3ad927..d2d40d24 100644 --- a/apps/main/src/pages/_app.tsx +++ b/apps/main/src/pages/_app.tsx @@ -32,7 +32,7 @@ const App = trpc.withTRPC(function App({ document.body.classList.add(inter.variable); loadFlock(); }, []); - + const isWidget = !!(pageProps as CommonWidgetProps).isWidget; return (
@@ -43,8 +43,8 @@ const App = trpc.withTRPC(function App({ attribute="class" // Widget and app themes are different storageKey={ - (pageProps as CommonWidgetProps).isWidget - ? 'chirpy.widget.theme' + isWidget + ? `chirpy.widget.theme_${pageProps.projectId}` : 'chirpy.theme' } >