fix: Hide personal booking theme when in an organization (#16117)

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
sean-brydonandPeer Richelsen authored and GitHub committed 2024-08-07 12:19:34 +00:00
1 parent 96b58422fd
commit 53ec5daa1b
2 files changed
+179 -173

No files matched your search

@@ -156,9 +156,6 @@ const useTabs = () => {
const processTabsMemod = useMemo(() => {
const processedTabs = tabs.map((tab) => {
if (tab.href === "/settings/my-account") {
if (!!session.data?.user?.org?.id) {
tab.children = tab?.children?.filter((child) => child.href !== "/settings/my-account/appearance");
}
return {
...tab,
name: user?.name || "my_account",