nusmods
nusmods copied to clipboard
bug: able to add negative modular credits to custom module
Describe the bug
You can add negative MC when creating a custom module in module planner
To Reproduce
Steps to reproduce the behavior:
- go to module planner
- add a custom mod
- click add data
- input a negative number
Expected behavior
should not allow negative number to be added
Screenshots
https://user-images.githubusercontent.com/102740235/180600693-18652abe-4674-446a-a24a-6ab29eb05820.mp4