Merge pull request #2406 from meetcshah19/meet/fix-email-capitalization

Send lower case emails to backend
This commit is contained in:
Meet Shah
2024-09-11 20:07:14 +05:30
committed by GitHub

View File

@@ -50,7 +50,8 @@ export default function EnterEmailStep({
// If everything is correct, go to the next step
if (!emailCheckBool) {
try {
await mutateAsync({ email });
await mutateAsync({ email: email.toLowerCase() });
setEmail(email.toLowerCase())
incrementStep();
} catch (e) {
if (axios.isAxiosError(e)) {