Skip to content

Commit

Permalink
#14 fix : button onclick function change
Browse files Browse the repository at this point in the history
  • Loading branch information
luckylooky2 committed Mar 19, 2023
1 parent d449814 commit 4f293cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions front/src/components/party/PartyDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ const PartyDetail = (): JSX.Element => {
color="error"
disabled={isWriter}
onClick={async () => {
const response = await PartyService.participatePartyDetail(id);
const response = await PartyService.cancelParticipatePartyDetail(
id
);
setIsCheck(false);
}}
>
Expand All @@ -139,9 +141,7 @@ const PartyDetail = (): JSX.Element => {
variant="contained"
disabled={isWriter}
onClick={async () => {
const response = await PartyService.cancelParticipatePartyDetail(
id
);
const response = await PartyService.participatePartyDetail(id);
setIsCheck(true);
}}
>
Expand Down

0 comments on commit 4f293cd

Please sign in to comment.