mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-27 00:07:50 +01:00
edit names
This commit is contained in:
@@ -55,7 +55,7 @@ const joinHandler = (e) => {
|
||||
resetJoinButtonState(e, joinHandler);
|
||||
});
|
||||
} else {
|
||||
toast('Name must be between 1 and 30 characters.', 'error', true, true, 'long');
|
||||
toast('Name must be between 1 and 40 characters.', 'error', true, true, 'long');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -90,7 +90,7 @@ function resetJoinButtonState (e, joinHandler) {
|
||||
}
|
||||
|
||||
function validateName (name) {
|
||||
return typeof name === 'string' && name.length > 0 && name.length <= 30;
|
||||
return typeof name === 'string' && name.length > 0 && name.length <= 40;
|
||||
}
|
||||
|
||||
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
|
||||
|
||||
Reference in New Issue
Block a user