Skip to content

Commit

Permalink
feat: await 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo committed Oct 12, 2024
1 parent f61a24a commit 09711c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const StudyApplication = ({ params }: { params: { studyId: number } }) => {
const handleClickApplyButton = async () => {
const result = await studyApplyApi.applyStudy(Number(studyId));
if (result.success) {
revalidateTagByName(tags.studyApply);
revalidateTagByName(tags.myOngoingStudy);
await revalidateTagByName(tags.studyApply);
await revalidateTagByName(tags.myOngoingStudy);
setApplySuccess(true);
}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const StudyCancel = ({ params }: { params: { studyId: number } }) => {
const result = await studyApplyApi.cancelStudyApplication(Number(studyId));

if (result.success) {
revalidateTagByName(tags.studyApply);
revalidateTagByName(tags.myOngoingStudy);
await revalidateTagByName(tags.studyApply);
await revalidateTagByName(tags.myOngoingStudy);
setCancelSuccess(true);
}
};
Expand Down

0 comments on commit 09711c0

Please sign in to comment.