Merge pull request #1986 from Infisical/daniel/fix-null-name-fields

Fix: `null` name fields on signup
This commit is contained in:
Maidul Islam
2024-06-17 08:49:34 -04:00
committed by GitHub

View File

@@ -75,7 +75,12 @@ export default function SignupInvite() {
// Verifies if the information that the users entered (name, workspace) is there, and if the password matched the criteria.
const signupErrorCheck = async () => {
setIsLoading(true);
let errorCheck = false;
let errorCheck = await checkPassword({
password,
setErrors
});
if (!firstName) {
setFirstNameError(true);
errorCheck = true;
@@ -89,11 +94,6 @@ export default function SignupInvite() {
setLastNameError(false);
}
errorCheck = await checkPassword({
password,
setErrors
});
if (!errorCheck) {
// Generate a random pair of a public and a private key
const pair = nacl.box.keyPair();