[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>
zio/stable
Ansh 2023-08-22 10:52:59 -07:00 committed by GitHub
parent fb1199e21d
commit 3aadc43c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -402,7 +402,9 @@ const LoginForm = ({
blurOnSubmit={false} // prevents flickering due to onSubmitEditing going to next field blurOnSubmit={false} // prevents flickering due to onSubmitEditing going to next field
keyboardAppearance={theme.colorScheme} keyboardAppearance={theme.colorScheme}
value={identifier} value={identifier}
onChangeText={str => setIdentifier((str || '').toLowerCase())} onChangeText={str =>
setIdentifier((str || '').toLowerCase().trim())
}
editable={!isProcessing} editable={!isProcessing}
accessibilityLabel="Username or email address" accessibilityLabel="Username or email address"
accessibilityHint="Input the username or email address you used at signup" accessibilityHint="Input the username or email address you used at signup"