This commit is contained in:
Alex Holliday
2024-09-24 14:11:19 +08:00
parent 008641b626
commit 5843192bde

View File

@ -93,7 +93,7 @@ function Sidebar() {
const { user } = useSelector((state) => state.auth);
// Remove demo password if demo
const accountMenuItem = menu.find((item) => item.name === "account");
const accountMenuItem = menu.find((item) => item.name === "Account");
if (user.role?.includes("demo") && accountMenuItem) {
accountMenuItem.nested = accountMenuItem.nested.filter((item) => {
return item.name !== "Password";