Skip to content

Commit

Permalink
fix: dashboardApi currentRecruitment 예외 처리 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ghdtjgus76 committed Aug 14, 2024
1 parent 78e16a7 commit 409894a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/client/apis/dashboardApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const dashboardApi = {

const memberRole = response.data?.member.role;
const currentRecruitmentOpen =
response.data?.currentRecruitmentRound.period.open;
response.data?.currentRecruitmentRound?.period.open || false;

return { memberRole, currentRecruitmentOpen };
},
Expand Down

0 comments on commit 409894a

Please sign in to comment.