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

pull/3155/head
Peer Richelsen 2022-06-25 07:25:17 +02:00 committed by GitHub
parent 02e5ec37e7
commit 7874ff9c6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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