Skip to content

Commit

Permalink
fix: respose.ok 값 체크
Browse files Browse the repository at this point in the history
  • Loading branch information
SeieunYoo committed Aug 19, 2024
1 parent 2b6a0ac commit 8f70b05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/client/apis/studyApplyApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export const studyApplyApi = {
null
);

return { success: !!response.ok };
return { success: response.ok };
},
cancelStudyApplication: async (studyId: number) => {
const response = await fetcher.delete(`${apiPath.applyStudy}/${studyId}`);

return { success: !!response.ok };
return { success: response.ok };
},
};

0 comments on commit 8f70b05

Please sign in to comment.