remove magic numbers, update how to use page styling

This commit is contained in:
AlecM33
2023-08-14 16:52:08 -04:00
parent a2ed634558
commit 0d1effb388
8 changed files with 41 additions and 36 deletions

View File

@@ -90,7 +90,7 @@ function resetJoinButtonState (e, joinHandler) {
}
function validateName (name) {
return typeof name === 'string' && name.length > 0 && name.length <= 40;
return typeof name === 'string' && name.length > 0 && name.length <= PRIMITIVES.MAX_PERSON_NAME_LENGTH;
}
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {