From 8a25e22e12e7d98eb952f43e99c243f28e18a9d9 Mon Sep 17 00:00:00 2001 From: eqypo9 Date: Tue, 3 Dec 2024 17:51:24 +0900 Subject: [PATCH] Fix: Build Error --- src/components/Lesson/LocalFilter/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Lesson/LocalFilter/index.tsx b/src/components/Lesson/LocalFilter/index.tsx index 544a5f1..c691735 100644 --- a/src/components/Lesson/LocalFilter/index.tsx +++ b/src/components/Lesson/LocalFilter/index.tsx @@ -36,7 +36,9 @@ export default function LocalFilter({ document.body.style.overflow = ''; } - onToggleOpen && onToggleOpen(isOpen); + if (onToggleOpen) { + onToggleOpen(isOpen); + } return () => { document.body.style.overflow = '';