diff --git a/pages/schedule.tsx b/pages/schedule.tsx index e92ca67..9212a48 100644 --- a/pages/schedule.tsx +++ b/pages/schedule.tsx @@ -228,6 +228,10 @@ export default function Schedule({ filters, shifts }: ISchedulesProps) { const [currentDate, setCurrentDate] = useState(() => new Date()); + useEffect(() => { + setCurrentDate(new Date()); + }, []); + return (