diff options
| author | Shravya Ramesh <37447613+shravyaramesh@users.noreply.github.com> | 2020-11-04 10:57:37 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-04 13:57:37 -0500 |
| commit | 30c8ff1612f8265f6f9612fd9b73807fd63c309a (patch) | |
| tree | 4eda7e1be9b2181b66c8b38ffe1dc3e894290779 /src/screens | |
| parent | 8052d68e53ce64f9125c3b287f852ead42c79eff (diff) | |
changed username from min 6 to min 3 chars (#105)
Co-authored-by: Ashm Walia <40498934+ashmgarv@users.noreply.github.com>
Diffstat (limited to 'src/screens')
| -rw-r--r-- | src/screens/onboarding/Login.tsx | 3 |
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) { |
