Skip to content

Commit 419290e

Browse files
update pr: Remove first name from user check api
1 parent 838a330 commit 419290e

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

apps/learner-web-app/src/app/registration/RegisterationFlow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ const RegisterationFlow = () => {
378378
const payload = isEmailCheck
379379
? { email: formData.email }
380380
: {
381-
firstName: formData.firstName,
381+
// firstName: formData.firstName,
382382
mobile: isUnderEighteen(formData.dob)
383383
? formData.parent_phone
384384
: formData.mobile,

apps/learner-web-app/src/utils/API/userService.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@ export const userCheck = async ({
3131
// }
3232
if (email) {
3333
response = await post(apiUrl, { email });
34-
} else if (mobile && firstName) {
34+
}
35+
else if (mobile && firstName) {
3536
response = await post(apiUrl, { mobile, email, firstName });
36-
} else if (username) {
37+
}
38+
else if (mobile) {
39+
response = await post(apiUrl, { mobile });
40+
}
41+
else if (username) {
3742
response = await post(apiUrl, { username });
3843
}
3944

0 commit comments

Comments
 (0)