Skip to content

Commit

Permalink
Fix: Build Error
Browse files Browse the repository at this point in the history
  • Loading branch information
eqypo9 committed Dec 3, 2024
1 parent 82af11d commit 8a25e22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Lesson/LocalFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export default function LocalFilter({
document.body.style.overflow = '';
}

onToggleOpen && onToggleOpen(isOpen);
if (onToggleOpen) {
onToggleOpen(isOpen);
}

return () => {
document.body.style.overflow = '';
Expand Down

0 comments on commit 8a25e22

Please sign in to comment.