From 16f2ce378b121dcbea31708630def8ff95e90f14 Mon Sep 17 00:00:00 2001
From: Zach <sweepyoface@gmail.com>
Date: Thu, 19 Dec 2024 09:36:07 -0800
Subject: fix: trim whitespace from email on signin page (#714)

* fix: trim whitespace from email

* fix: trim email in setter

Co-authored-by: Mohamed Bassem <me@mbassem.com>

---------

Co-authored-by: Mohamed Bassem <me@mbassem.com>
---
 apps/mobile/app/signin.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'apps/mobile/app/signin.tsx')

diff --git a/apps/mobile/app/signin.tsx b/apps/mobile/app/signin.tsx
index df0c2e5f..6119f0f8 100644
--- a/apps/mobile/app/signin.tsx
+++ b/apps/mobile/app/signin.tsx
@@ -123,7 +123,7 @@ export default function Signin() {
                   autoCapitalize="none"
                   value={usernameFormData.email}
                   onChangeText={(e) =>
-                    setUserNameFormData((s) => ({ ...s, email: e }))
+                    setUserNameFormData((s) => ({ ...s, email: e.trim() }))
                   }
                 />
               </View>
-- 
cgit v1.2.3-70-g09d2

