fix: send lower case emails to backend

This commit is contained in:
Meet Shah
2024-09-11 04:38:00 +05:30
parent ea3b3c5cec
commit 3fc907f076

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)) {