Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion public/src/client/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@
callback = callback || function () {};

const username_notify = $('#username-notify');
username_notify.text('');

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

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, 16)

Trailing spaces not allowed
const userslug = slugify(username);
if (username.length < ajaxify.data.minimumUsernameLength ||
userslug.length < ajaxify.data.minimumUsernameLength) {
Expand All @@ -131,7 +133,7 @@
if (results.every(obj => obj.status === 'rejected')) {
showSuccess(username_notify, successIcon);
} else {
showError(username_notify, '[[error:username-taken]]');
showError(username_notify, '[[error:username-taken]]' + ' maybe try ' + $('#username').val() + 'suffix instead');

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

View workflow job for this annotation

GitHub Actions / Lint (ubuntu-latest, 16)

Unexpected string concatenation of literals
}

callback();
Expand Down
Loading