Skip to content

Commit

Permalink
fixed username taken notification issue by changing the file in publi…
Browse files Browse the repository at this point in the history
…c/language/en-US/error.js line 34 and public/src/client/register.js line 138
  • Loading branch information
jdufitum committed Sep 12, 2024
1 parent 78c9ee7 commit 4c0ca6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/language/en-US/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"invalid-path": "Invalid path",
"folder-exists": "Folder exists",
"invalid-pagination-value": "Invalid pagination value, must be at least %1 and at most %2",
"username-taken": "Username taken",
"username-taken": "Username taken, Maybe try %1",
"email-taken": "Email address is already taken.",
"email-nochange": "The email entered is the same as the email already on file.",
"email-invited": "Email was already invited",
Expand Down
2 changes: 1 addition & 1 deletion public/src/client/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ define('forum/register', [
if (results.every(obj => obj.status === 'rejected')) {
showSuccess(usernameInput, username_notify, successIcon);
} else {
showError(usernameInput, username_notify, '[[error:username-taken]]');
showError(usernameInput, username_notify, '[[error:username-taken, ' + username + 'suffix'+ ']]');

Check failure on line 138 in public/src/client/register.js

View workflow job for this annotation

GitHub Actions / test

Operator '+' must be spaced

Check failure on line 138 in public/src/client/register.js

View workflow job for this annotation

GitHub Actions / test

Unexpected string concatenation of literals
}

callback();
Expand Down

0 comments on commit 4c0ca6d

Please sign in to comment.