mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-07 02:09:46 -06:00
fix superadmin state
This commit is contained in:
@@ -17,7 +17,7 @@ const withAdminCheck = (WrappedComponent) => {
|
||||
if (response?.data?.data === true) {
|
||||
navigate("/login");
|
||||
} else {
|
||||
setSuperAdminExists(true);
|
||||
setSuperAdminExists(false);
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
|
||||
@@ -4,7 +4,7 @@ import NotFound from "../Pages/NotFound";
|
||||
|
||||
// Auth
|
||||
import AuthLogin from "../Pages/Auth/Login";
|
||||
import AuthRegister from "../Pages/Auth/Register/Register";
|
||||
import AuthRegister from "../Pages/Auth/Register/";
|
||||
import AuthForgotPassword from "../Pages/Auth/ForgotPassword";
|
||||
import AuthCheckEmail from "../Pages/Auth/CheckEmail";
|
||||
import AuthSetNewPassword from "../Pages/Auth/SetNewPassword";
|
||||
|
||||
Reference in New Issue
Block a user