fix: validation on profile page (#398)

* fix validation of username and fullname

* fix

* fix message

* Update validator.js

* Update Profile.svelte

* remove unused functions

---------

Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
Smriti Doneria
2024-07-20 09:38:39 +01:00
committed by GitHub
co-authored by Rotimi Best
parent 1f91299544
commit 7a2954faba
3 changed files with 23 additions and 9 deletions
@@ -1329,7 +1329,9 @@
"validations": {
"user_profile": {
"email": "Invalid email address"
"email": "Invalid email address",
"username":"Username cannot be empty",
"fullname":"Name should be minimum of 5 characters"
},
"organization_name": {
"min_char": "Organization must contain 5 or more characters",