diff --git a/web/src/components/kit/DatePicker.tsx b/web/src/components/kit/DatePicker.tsx index 5964e7d4..69ef1b28 100644 --- a/web/src/components/kit/DatePicker.tsx +++ b/web/src/components/kit/DatePicker.tsx @@ -39,9 +39,8 @@ const DatePicker: React.FC = (props: DatePickerProps) => { }, [user.username]); const firstDate = new Date(currentDateStamp); - const firstDateDay = firstDate.getDay() === 0 ? 7 : firstDate.getDay(); const dayList = []; - for (let i = 1; i < firstDateDay; i++) { + for (let i = 0; i < firstDate.getDay(); i++) { dayList.push({ date: 0, datestamp: firstDate.getTime() - DAILY_TIMESTAMP * (7 - i),