misc: addressed invalid redirect condition in signup invite page

This commit is contained in:
Sheen Capadngan
2024-09-22 20:32:55 +08:00
parent bb4a16cf7c
commit 14c89c9be5

View File

@@ -70,12 +70,6 @@ export default function SignupInvite() {
const { mutateAsync: selectOrganization } = useSelectOrganization();
useEffect(() => {
if (!config.allowSignUp) {
router.push("/login");
}
}, [config.allowSignUp]);
// Verifies if the information that the users entered (name, workspace) is there, and if the password matched the criteria.
const signupErrorCheck = async () => {
setIsLoading(true);