Skip to content

Commit

Permalink
Fix: 채팅 get 요청시 역순으로 오는 채팅 순서를 reverse 로 반전
Browse files Browse the repository at this point in the history
  • Loading branch information
pp449 committed Oct 26, 2023
1 parent 89a1b99 commit ed58cc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RoundCheckIn/CallAdminChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const CallAdminChat = ({

useEffect(() => {
if (!matchMessages || matchMessages.length === 0) return;
setChats(matchMessages);
setChats(matchMessages.reverse());
}, [matchMessages]);

return (
Expand Down

0 comments on commit ed58cc9

Please sign in to comment.