about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAnsh <anshnanda10@gmail.com>2023-08-22 10:52:59 -0700
committerGitHub <noreply@github.com>2023-08-22 10:52:59 -0700
commit3aadc43c896e1c54552387f028a476d7d8ec2d3c (patch)
tree3474b96453adddfd621b8214a48427f683247ec8 /src
parentfb1199e21dc90755e16cd4e31a95e63356ecf6f6 (diff)
downloadvoidsky-3aadc43c896e1c54552387f028a476d7d8ec2d3c.tar.zst
[APP-835] trim end of email during login (#1242)
* trim end of email during login

* Switch trimEnd() to trim()

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/view/com/auth/login/Login.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/auth/login/Login.tsx b/src/view/com/auth/login/Login.tsx
index c76c33938..c277bfb9e 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"