From 3aadc43c896e1c54552387f028a476d7d8ec2d3c Mon Sep 17 00:00:00 2001 From: Ansh Date: Tue, 22 Aug 2023 10:52:59 -0700 Subject: [PATCH] [APP-835] trim end of email during login (#1242) * trim end of email during login * Switch trimEnd() to trim() --------- Co-authored-by: Paul Frazee --- src/view/com/auth/login/Login.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/view/com/auth/login/Login.tsx b/src/view/com/auth/login/Login.tsx index c76c3393..c277bfb9 100644 --- a/src/view/com/auth/login/Login.tsx +++ b/src/view/com/auth/login/Login.tsx @@ -402,7 +402,9 @@ const LoginForm = ({ blurOnSubmit={false} // prevents flickering due to onSubmitEditing going to next field keyboardAppearance={theme.colorScheme} value={identifier} - onChangeText={str => setIdentifier((str || '').toLowerCase())} + onChangeText={str => + setIdentifier((str || '').toLowerCase().trim()) + } editable={!isProcessing} accessibilityLabel="Username or email address" accessibilityHint="Input the username or email address you used at signup"