diff --git a/packages/features/shell/Shell.tsx b/packages/features/shell/Shell.tsx index 7ab961b687..f87a829068 100644 --- a/packages/features/shell/Shell.tsx +++ b/packages/features/shell/Shell.tsx @@ -797,32 +797,26 @@ function SideBar({ bannersHeight, user }: SideBarProps) { const orgBranding = useOrgBrandingValues(); const publicPageUrl = orgBranding?.slug ? getOrganizationUrl(orgBranding?.slug) : ""; const bottomNavItems: NavigationItemType[] = [ - ...(user?.username - ? [ - { - name: "view_public_page", - href: !!user?.organizationId - ? publicPageUrl - : `${process.env.NEXT_PUBLIC_WEBSITE_URL}/${user.username}`, - icon: ExternalLink, - target: "__blank", - }, - { - name: "copy_public_page_link", - href: "", - onClick: (e: { preventDefault: () => void }) => { - e.preventDefault(); - navigator.clipboard.writeText( - !!user?.organizationId - ? publicPageUrl - : `${process.env.NEXT_PUBLIC_WEBSITE_URL}/${user.username}` - ); - showToast(t("link_copied"), "success"); - }, - icon: Copy, - }, - ] - : []), + { + name: "view_public_page", + href: !!user?.organizationId + ? publicPageUrl + : `${process.env.NEXT_PUBLIC_WEBSITE_URL}/${user?.username}`, + icon: ExternalLink, + target: "__blank", + }, + { + name: "copy_public_page_link", + href: "", + onClick: (e: { preventDefault: () => void }) => { + e.preventDefault(); + navigator.clipboard.writeText( + !!user?.organizationId ? publicPageUrl : `${process.env.NEXT_PUBLIC_WEBSITE_URL}/${user?.username}` + ); + showToast(t("link_copied"), "success"); + }, + icon: Copy, + }, { name: "settings", href: user?.organizationId @@ -922,7 +916,7 @@ function SideBar({ bannersHeight, user }: SideBarProps) {