diff --git a/web/src/hooks/barItems.tsx b/web/src/hooks/barItems.tsx index bb9f771..7361c83 100644 --- a/web/src/hooks/barItems.tsx +++ b/web/src/hooks/barItems.tsx @@ -46,7 +46,7 @@ export const useBarItems = (): [BarItem[], (item: BarItem) => boolean] => { tab: "data-personalization", pathname: "/data-personalize", }, - ...(profile.isAdmin + ...(profile.is_admin ? [ { icon: , diff --git a/web/src/layout/AdminLayout.tsx b/web/src/layout/AdminLayout.tsx index 96cefa9..c3b9f45 100644 --- a/web/src/layout/AdminLayout.tsx +++ b/web/src/layout/AdminLayout.tsx @@ -32,7 +32,7 @@ const AdminLayout: FC = () => { ; } - if (!profile?.isAdmin) { + if (!profile?.is_admin) { return ; }