diff --git a/frontend/index.html b/frontend/index.html index 79c4701..eadd9cb 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -2,9 +2,9 @@ - + - Vite + React + pirocheck
diff --git a/frontend/src/components/RequireAdmin.jsx b/frontend/src/components/RequireAdmin.jsx index becbb4d..ef87dff 100644 --- a/frontend/src/components/RequireAdmin.jsx +++ b/frontend/src/components/RequireAdmin.jsx @@ -4,7 +4,7 @@ const RequireAdmin = ({ children }) => { const user = JSON.parse(localStorage.getItem("user")); if (!user) return ; - if (user.role !== "ADMIN") return ; + if (user.role !== "ADMIN") return ; return children; };