Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/Satellite-im/Uplink into thu…
Browse files Browse the repository at this point in the history
…mb-without-command
  • Loading branch information
lgmarchi committed Mar 28, 2023
2 parents 06bb28e + 38bd5e2 commit 5882d0f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ui/src/components/settings/sub_pages/profile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ use rfd::FileDialog;
use warp::multipass;
use warp::{error::Error, logging::tracing::log};

use crate::layouts::create_account::{MAX_USERNAME_LEN, MIN_USERNAME_LEN};

#[derive(Clone)]
enum ChanCmd {
Profile(String),
Expand Down Expand Up @@ -121,9 +119,9 @@ pub fn ProfileSettings(cx: Scope) -> Element {
// Set up validation options for the input field
let username_validation_options = Validation {
// The input should have a maximum length of 32
max_length: Some(MIN_USERNAME_LEN),
max_length: Some(32),
// The input should have a minimum length of 4
min_length: Some(MAX_USERNAME_LEN),
min_length: Some(4),
// The input should only contain alphanumeric characters
alpha_numeric_only: true,
// The input should not contain any whitespace
Expand Down

0 comments on commit 5882d0f

Please sign in to comment.