Merge pull request #2466 from Infisical/misc/addressed-invalid-redirect-condition-signup-page

misc: addressed invalid redirect condition in signup invite page
This commit is contained in:
Sheen
2024-09-27 00:54:58 +08:00
committed by GitHub

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);