fix superadmin state

This commit is contained in:
Alex Holliday committed 2025-06-11 12:41:58 +08:00
1 parent bcea3a5e66
commit c0ad2dfce2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ const withAdminCheck = (WrappedComponent) => {
if (response?.data?.data === true) {
navigate("/login");
} else {
setSuperAdminExists(true);
setSuperAdminExists(false);
}
})
.catch((error) => {