Skip to content

Commit

Permalink
fix: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Aug 13, 2024
1 parent 557a9a2 commit 4d42b32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function WorkspacePanelWrapper({ lesson }: Props) {
const theme = useStore(themeStore);

useEffect(() => {
tutorialStore.setLesson(lesson, { ssr: import.meta.env.SSR });
tutorialStore.setLesson(lesson);
}, [lesson]);

if (import.meta.env.SSR || !tutorialStore.lesson) {
Expand Down

0 comments on commit 4d42b32

Please sign in to comment.