더미데이터로 입력한 id 값은 1~5, data id를 6부터 시작
const dataId = useRef(0); 👉 const dataId = useRef(6);
const lastDay = new Date(
curDate.getFullYear(),
curDate.getMonth() + 1,
0,
).getTime();
👇
const lastDay = new Date(
curDate.getFullYear(),
curDate.getMonth() + 1,
0,
23,
59,
59
).getTime();