From a3b04b6243ffad2d721c30b4c6b081e2131d51eb Mon Sep 17 00:00:00 2001 From: LandaMm Date: Wed, 4 Jun 2025 19:11:28 +0200 Subject: [PATCH] fix: correct spelling for `is_admin` --- web/src/hooks/barItems.tsx | 2 +- web/src/layout/AdminLayout.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ; }