Skip to content

Commit

Permalink
Removed name formatting check
Browse files Browse the repository at this point in the history
  • Loading branch information
alantao912 committed Nov 22, 2023
1 parent cfe708a commit 09beefa
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions frontend/src/common/redux/userLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,24 +246,12 @@ export const registerViaEmailAndPassword = createAsyncThunk<
});
}

if (!isNameValid(firstName)) {
return thunkAPI.rejectWithValue({
message: "First name must contain only letters"
});
}

if (!lastName || lastName === "") {
return thunkAPI.rejectWithValue({
message: "Please enter your last name"
});
}

if (!isNameValid(lastName)) {
return thunkAPI.rejectWithValue({
message: "Last name must contain only letters"
});
}

try {
const userCredential = await createUserWithEmailAndPassword(
auth,
Expand Down

0 comments on commit 09beefa

Please sign in to comment.