From 09beefa2295d52069aae2f6b25faffecb1a52606 Mon Sep 17 00:00:00 2001 From: "le_hooligan\\Yvng Alan" Date: Wed, 22 Nov 2023 02:03:46 -0500 Subject: [PATCH] Removed name formatting check --- frontend/src/common/redux/userLogin.ts | 12 ------------ 1 file changed, 12 deletions(-) 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,