Closed Bmandk closed 3 months ago
Can you figure a better way to write getCurrentAmount
? You also left that unchecked
Pushed a change, so it now uses input validation and you can't even type non-numeric characters. Code seems better, but let me know if you think there's a better way.
[^0-9]
can technically be replaced with \D
(not a digit)
I introduced a small bug where the amount of items for the current item is not being saved. This is fixed here by saving it to records.