diff --git a/admin/src/components/header/AdminHeader.jsx b/admin/src/components/header/AdminHeader.jsx index b0046a1..ad0b38e 100644 --- a/admin/src/components/header/AdminHeader.jsx +++ b/admin/src/components/header/AdminHeader.jsx @@ -57,7 +57,7 @@ function AdminHeader() { useEffect(() => { fetchEventSchedules(); - }, []); + }, [dateInfo]); const handleDateChange = event => setSelectedDate(event.target.value); diff --git a/service/src/pages/miniquiz/NoQuizMain.jsx b/service/src/pages/miniquiz/NoQuizMain.jsx index bd9d2c2..3ce01aa 100644 --- a/service/src/pages/miniquiz/NoQuizMain.jsx +++ b/service/src/pages/miniquiz/NoQuizMain.jsx @@ -18,14 +18,11 @@ function NoQuizMain() { return (