Skip to content

Commit

Permalink
chore : 같은 반 클릭 시 데이터 안뜸 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuna committed Jun 20, 2024
1 parent b3780f9 commit f431364
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/attendanceCheck/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,16 @@ const attendanceCheck = () => {
const { mutate: attendanceSave } = AttendanceSave();

const handleGradeChange = (selectedOption: number) => {
setStudents([]);
if (selectedGrade !== selectedOption) {
setStudents([]);
}
setSelectedGrade(selectedOption);
};

const handleClassChange = (selectedOption: number) => {
setStudents([]);
if (selectedClass !== selectedOption) {
setStudents([]);
}
setSelectedClass(selectedOption);
};

Expand Down

0 comments on commit f431364

Please sign in to comment.