fix: Hide personal booking theme when in an organization (#16117)
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
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",
|
||||
|
||||
Reference in new issue
Block a user