Skip to content

Commit

Permalink
🐛 Fix a bug that would bring an error if User didn't have an agency
Browse files Browse the repository at this point in the history
  • Loading branch information
Ked57 committed May 25, 2021
1 parent 37ecffc commit c652906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/skills/[context]/[category]/[skill]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const SkillPage = () => {
user: {
name: userSkill.User.name,
picture: userSkill.User.picture,
agency: userSkill.User.UserLatestAgency.agency,
agency: userSkill.User.UserLatestAgency?.agency,
},
}));
return (
Expand Down

0 comments on commit c652906

Please sign in to comment.