Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
fix non-admin team preview button (calcom#7301)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hybes authored and fritterhoff committed Feb 26, 2023
1 parent ddde2b6 commit 96ce7e0
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 96ce7e0

Please sign in to comment.