Skip to content

Commit

Permalink
chore(next): update validation alert message
Browse files Browse the repository at this point in the history
  • Loading branch information
windsnow1025 committed Oct 16, 2024
1 parent 97d2c1b commit ec81da9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions next/pages/user/state/[action].js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ function Action() {

const handleSignUp = async () => {
if (!userLogic.validateInput(username)) {
setAlertMessage("Username must be 4-32 ASCII characters.");
setAlertMessage("Username invalid.");
setAlertSeverity('warning');
setAlertOpen(true);
return;
}

if (!userLogic.validateInput(password)) {
setAlertMessage("Password must be 4-32 ASCII characters.");
setAlertMessage("Password invalid.");
setAlertSeverity('warning');
setAlertOpen(true);
return;
Expand Down

0 comments on commit ec81da9

Please sign in to comment.