Skip to content

Commit

Permalink
fix: theme blinking
Browse files Browse the repository at this point in the history
  • Loading branch information
asabotovich committed Feb 12, 2024
1 parent cd24af0 commit 31be989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Page/Page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const mapThemeOnId = { light: 0, dark: 1 } as const;

export const Page: React.FC<PageProps> = ({ user, ssrTime, title = 'Untitled', children, ...attrs }) => {
const { setPreview } = useGoalPreview();
const { data: userSettings } = trpc.user.settings.useQuery();
const { data: userSettings = user?.settings } = trpc.user.settings.useQuery();

useHotkeys();

Expand Down

0 comments on commit 31be989

Please sign in to comment.