Skip to content

Commit

Permalink
bug : checkUsers state 초기화 안 되서 생긴 버그 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
YangJJune committed Aug 20, 2024
1 parent 8538a4a commit 0061fd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/PayPage/CreateRequestPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ const CreateRequestPage2 = ({

useEffect(() => {
const id = Number(localStorage.getItem("spaceId"));
setCheckUsers(new Set<number>());

getAllMemberApi(id, setUserInfoData);
getAllChatMemberApi(id, setChatUserInfoData).then((res) =>
console.log("chatUser", chatUserInfoData),
);
getAllChatMemberApi(id, setChatUserInfoData);
}, []);

const checkUserHandler = (id: number) => {
Expand Down

0 comments on commit 0061fd5

Please sign in to comment.