Skip to content

Commit

Permalink
#14 fix : erase useeffect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed Mar 19, 2023
1 parent 0d0db8b commit f4a91b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion front/src/components/party/PartyDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const PartyDetail = (): JSX.Element => {
// async화 하기
useEffect(() => {
getPartyDetail();
}, [isCheck]);
}, []);

return (
<>
Expand Down Expand Up @@ -131,6 +131,7 @@ const PartyDetail = (): JSX.Element => {
id
);
setIsCheck(false);
getPartyDetail();
}}
>
참여 취소할래요
Expand All @@ -142,6 +143,7 @@ const PartyDetail = (): JSX.Element => {
onClick={async () => {
const response = await PartyService.participatePartyDetail(id);
setIsCheck(true);
getPartyDetail();
}}
>
참여할래요
Expand Down

0 comments on commit f4a91b8

Please sign in to comment.