fix timer validation, make error toasts brighter

This commit is contained in:
AlecM33
2023-08-16 13:57:03 -04:00
parent 1d22aebbb9
commit e015f1baea
3 changed files with 14 additions and 13 deletions

View File

@@ -139,7 +139,7 @@ export class GameCreationStepManager {
restoreButton();
break;
case 400:
toast('Your game has invalid parameters..', 'error', true, true);
toast('Your game has invalid parameters.', 'error', true, true);
restoreButton();
break;
case 201:
@@ -331,11 +331,11 @@ export class GameCreationStepManager {
}
if (hours !== null) {
valid = hours <= PRIMITIVES.MAX_HOURS;
valid = hours > 0 && hours <= PRIMITIVES.MAX_HOURS;
}
if (minutes !== null) {
valid = minutes <= PRIMITIVES.MAX_MINUTES;
valid = minutes > 0 && minutes <= PRIMITIVES.MAX_MINUTES;
}
return valid;