aboutsummaryrefslogtreecommitdiff
path: root/src/screens
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens')
-rw-r--r--src/screens/onboarding/Login.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/screens/onboarding/Login.tsx b/src/screens/onboarding/Login.tsx
index 1e2510fb..26b45315 100644
--- a/src/screens/onboarding/Login.tsx
+++ b/src/screens/onboarding/Login.tsx
@@ -57,8 +57,9 @@ const Login: React.FC<LoginProps> = ({navigation}: LoginProps) => {
* Updates the state of username. Also verifies the input of the username field by ensuring proper length and appropriate characters.
*/
const handleUsernameUpdate = (val: string) => {
+
val = val.trim();
- let validLength: boolean = val.length >= 6;
+ let validLength: boolean = val.length >= 3;
let validChars: boolean = usernameRegex.test(val);
if (validLength && validChars) {