From 3fc907f076998e716d38cdda7610528ec5d21e13 Mon Sep 17 00:00:00 2001 From: Meet Shah Date: Wed, 11 Sep 2024 04:38:00 +0530 Subject: [PATCH] fix: send lower case emails to backend --- frontend/src/components/signup/EnterEmailStep.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/signup/EnterEmailStep.tsx b/frontend/src/components/signup/EnterEmailStep.tsx index 2b5b0d138..1b1a5c8a3 100644 --- a/frontend/src/components/signup/EnterEmailStep.tsx +++ b/frontend/src/components/signup/EnterEmailStep.tsx @@ -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)) {