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:
1 parent
214528ffa8
commit
3ecc9319c7
4 files changed
+8
-1
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user