From db4d17f1722d8b34f78b7959f32394f455c13f72 Mon Sep 17 00:00:00 2001 From: cel 🌸 Date: Tue, 10 Sep 2024 15:27:37 +0100 Subject: Change username minimum length to 1 --- src/views/Authorization/Signup.jsx | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/views') diff --git a/src/views/Authorization/Signup.jsx b/src/views/Authorization/Signup.jsx index 9e6cc70..67a9852 100644 --- a/src/views/Authorization/Signup.jsx +++ b/src/views/Authorization/Signup.jsx @@ -60,10 +60,6 @@ const SignupView = () => { setUsernameError('Username is required') isValid = false } - if (username.length < 4) { - setUsernameError('Username must be at least 4 characters') - isValid = false - } if (!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email)) { setEmailError('Invalid email address') isValid = false -- cgit