Skip to content

Commit

Permalink
feat: 전체 참여자 관리 이름을 ㄱ-ㅎ,a-z 순으로 정렬하기
Browse files Browse the repository at this point in the history
  • Loading branch information
soi-ha committed Nov 18, 2024
1 parent d693a5b commit 2302a85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/hooks/useEventMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const useEventMember = (): ReturnUseEventMember => {
const [deleteMembers, setDeleteMembers] = useState<number[]>([]);

useEffect(() => {
setReports(initialReports);
const sortedMemberNameReports = initialReports.sort((a, b) => a.memberName.localeCompare(b.memberName));

setReports(sortedMemberNameReports);
}, [initialReports]);

const canSubmit = useMemo(() => {
Expand Down

0 comments on commit 2302a85

Please sign in to comment.