Skip to content

Commit

Permalink
fix: 워크스페이스 data undefined 방지
Browse files Browse the repository at this point in the history
  • Loading branch information
namdaeun committed Nov 11, 2024
1 parent 9cbc977 commit 05df437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/hook/common/useTeamId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const useTeamId = () => {
setTeamId(localStorage.getItem('teamId'));
}, [location]);

return teamId ?? data?.belongTeamGetResponses[0]?.id ?? '0';
return teamId ?? data!.belongTeamGetResponses[0]?.id;
};

export default useTeamId;

0 comments on commit 05df437

Please sign in to comment.