Skip to content

Commit

Permalink
feat: useEffect 의존성 배열 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cjy3458 committed May 5, 2024
1 parent 8d79a43 commit 3e34cb5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/mypage/TotalScoreSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ const TotalScoreSection = ({ myName }: { myName: string }) => {
});
setSortScoreArray(sort);
}
}, [totalAssignment, totalAttendance]);
}, [totalAssignment, totalAttendance, totalScoreArray]);

if (totalScoreArray) {
}
return (
<>
<Wrapper>
Expand Down

0 comments on commit 3e34cb5

Please sign in to comment.