Skip to content

Commit

Permalink
chore: move setIsModal position
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Apr 18, 2024
1 parent f5b01f9 commit 4592b0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modals/study/StudyFreeOpenModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ function StudyFreeOpenModal({ setIsModal }: IStudyFreeOpenModal) {
onSuccess() {
queryClient.invalidateQueries([STUDY_VOTE, date, location]);
completeToast("free", "스터디가 Free로 오픈되었습니다.");
setIsModal(false);
},
onError: errorToast,
});
const { mutate: patchAttend } = useStudyParticipationMutation(dayjs(date), "post", {
onSuccess: () => {
queryClient.invalidateQueries([STUDY_VOTE, date, location]);
setIsModal(false);
},
onError: errorToast,
});
Expand Down

0 comments on commit 4592b0b

Please sign in to comment.