fix superadmin state
This commit is contained in:
1 parent
bcea3a5e66
commit
c0ad2dfce2
2 files changed
+2
-2
No files matched your search
@@ -17,7 +17,7 @@ const withAdminCheck = (WrappedComponent) => {
|
|||||||
if (response?.data?.data === true) {
|
if (response?.data?.data === true) {
|
||||||
navigate("/login");
|
navigate("/login");
|
||||||
} else {
|
} else {
|
||||||
setSuperAdminExists(true);
|
setSuperAdminExists(false);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import NotFound from "../Pages/NotFound";
|
|||||||
|
|
||||||
// Auth
|
// Auth
|
||||||
import AuthLogin from "../Pages/Auth/Login";
|
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 AuthForgotPassword from "../Pages/Auth/ForgotPassword";
|
||||||
import AuthCheckEmail from "../Pages/Auth/CheckEmail";
|
import AuthCheckEmail from "../Pages/Auth/CheckEmail";
|
||||||
import AuthSetNewPassword from "../Pages/Auth/SetNewPassword";
|
import AuthSetNewPassword from "../Pages/Auth/SetNewPassword";
|
||||||
|
|||||||
Reference in new issue
Block a user