@@ -65,6 +65,8 @@ const Attendance = () => {
65
65
weekSlotMap . set ( week , [ ...existing , ...presentSlots ] ) ;
66
66
} ) ;
67
67
68
+ console . log ( "주차별 출석 (weekSlotMap):" , weekSlotMap ) ;
69
+
68
70
return Array . from ( { length : 5 } , ( _ , i ) => {
69
71
const week = i + 1 ;
70
72
const all9 = weekSlotMap . get ( week ) || [ ] ; // 총 9개의 출석 슬롯 (3번의 출석체크*주차당 3번의 세션)
@@ -95,6 +97,7 @@ const Attendance = () => {
95
97
withCredentials : true , // 세션 기반 인증 요청처리
96
98
} ) ;
97
99
const rawData = res . data . data ;
100
+ console . log ( "출석 rawData:" , rawData ) ;
98
101
const weekly = processWeeklyAttendance ( rawData ) ;
99
102
setAttendanceData ( weekly ) ;
100
103
} catch ( error ) {
@@ -160,11 +163,11 @@ const Attendance = () => {
160
163
// 매 분마다 현재 날짜를 확인해서 달라졌으면 상태 업데이트
161
164
const dateCheckInterval = setInterval ( ( ) => {
162
165
const todayStr = new Date ( ) . toLocaleDateString ( "sv-SE" ) ; // → KST(한국 시간 기준)
163
- console . log ( "dateCheckInterval 실행됨 / 현재 시간:" , new Date ( ) ) ;
166
+ console . log ( "dateCheckInterval 실행 시간:" , new Date ( ) ) ;
164
167
console . log (
165
- "currentDateRef :" ,
168
+ "현재 로드해오는 시간 :" ,
166
169
currentDateRef . current ,
167
- "| todayStr :" ,
170
+ "| 현재 날짜 :" ,
168
171
todayStr
169
172
) ;
170
173
@@ -204,7 +207,6 @@ const Attendance = () => {
204
207
205
208
const res = await api . post (
206
209
"/attendance/mark" ,
207
-
208
210
{
209
211
userId,
210
212
code : attendanceCode [ 0 ] ,
0 commit comments