Skip to content

Scheduling infrastructure for absolutely everyone.

removed hardcoded url for non-cal.com (#3120)

Peer Richelsen7874ff9c6d77
diff --git a/apps/web/components/Shell.tsx b/apps/web/components/Shell.tsx
index 13ed8dcc379..535b52f4495 100644
--- a/apps/web/components/Shell.tsx
+++ b/apps/web/components/Shell.tsx
@@ -497,10 +497,14 @@ function UserDropdown({ small }: { small?: boolean }) {
<span className="flex flex-grow items-center truncate">
<span className="flex-grow truncate text-sm">
<span className="block truncate font-medium text-gray-900">
- {user?.username || "Nameless User"}
+ {user?.name || "Nameless User"}
</span>
<span className="block truncate font-normal text-neutral-500">
- {user?.username ? `cal.com/${user.username}` : "No public page"}
+ {user?.username
+ ? process.env.NEXT_PUBLIC_WEBSITE_URL === "https://cal.com"
+ ? `cal.com/${user.username}`
+ : `/${user.username}`
+ : "No public page"}
</span>
</span>
<SelectorIcon