fix: Introduce a new prop in the session to extract the profile username when inside an org (#18979)

* fix: flaky test organization.spec

* fix: use profile.username

* update

* update

* update
This commit is contained in:
Anik Dhabal Babu authored and GitHub committed 2025-03-25 09:46:00 +05:30
1 parent 214528ffa8
commit 3ecc9319c7
4 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ export function SideBar({ bannersHeight, user }: SideBarProps) {
const isPlatformPages = pathname?.startsWith("/settings/platform");
const isAdmin = session.data?.user.role === UserPermissionRole.ADMIN;
const publicPageUrl = `${getBookerBaseUrlSync(user?.org?.slug ?? null)}/${user?.username}`;
const publicPageUrl = `${getBookerBaseUrlSync(user?.org?.slug ?? null)}/${user?.orgAwareUsername}`;
const bottomNavItems = useBottomNavItems({
publicPageUrl,