Backend has an integer check but frontend doesn't. Submitting with a decimal place it will throw a generic 400 and doesn't show the warning well:
Making the validator check for ints should be pretty easy, angular might have an existing validator, one, if not just use Number.IsInteger.
Going to self-assign this since I'm unhappy with how these toasts are displaying overall and want to mess with doing some custom RxJS operators for alleviating all the catch (err) { this.messageService.add( ... ) } boilerplate we have rn.
Backend has an integer check but frontend doesn't. Submitting with a decimal place it will throw a generic 400 and doesn't show the warning well:![image](https://github.com/momentum-mod/website/assets/35813309/8166e383-1492-499c-95a0-f947b5a64e72)
Making the validator check for ints should be pretty easy, angular might have an existing validator, one, if not just use
Number.IsInteger
.Going to self-assign this since I'm unhappy with how these toasts are displaying overall and want to mess with doing some custom RxJS operators for alleviating all the
catch (err) { this.messageService.add( ... ) }
boilerplate we have rn.