diff --git a/frontend/src/common/redux/userLogin.ts b/frontend/src/common/redux/userLogin.ts index e6badc60..d877adeb 100644 --- a/frontend/src/common/redux/userLogin.ts +++ b/frontend/src/common/redux/userLogin.ts @@ -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,