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