Skip to content

Commit

Permalink
fix non-admin team preview button (#7301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hybes authored Feb 23, 2023
1 parent 4d82567 commit 207bcb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/features/ee/teams/pages/team-profile-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const ProfileView = () => {
const isAdmin =
team && (team.membership.role === MembershipRole.OWNER || team.membership.role === MembershipRole.ADMIN);

const permalink = `${CAL_URL?.replace(/^(https?:|)\/\//, "")}/team/${team?.slug}`;
const permalink = `${WEBAPP_URL}/team/${team?.slug}`;

const isBioEmpty = !team || !team.bio || !team.bio.replace("<p><br></p>", "").length;

Expand Down

0 comments on commit 207bcb9

Please sign in to comment.