Skip to content

Commit

Permalink
Fixed URL in Join/Apply link in Whiteboard Footer (#5426)
Browse files Browse the repository at this point in the history
  • Loading branch information
me-andre authored Jan 23, 2024
1 parent 1146286 commit e5203b9
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,18 @@ const WhiteboardDialogFooter = ({
...spaceContext,
});

const journeyProfile = opportunityContext.profile ?? challengeContext.profile ?? spaceContext.profile;
const getJourneyProfile = () => {
switch (journeyTypeName) {
case 'space':
return spaceContext.profile;
case 'challenge':
return challengeContext.profile;
case 'opportunity':
return opportunityContext.profile;
}
};

const journeyProfile = getJourneyProfile();

const readonlyReason = canUpdateContent
? null
Expand Down

0 comments on commit e5203b9

Please sign in to comment.