OpenNutriTracker icon indicating copy to clipboard operation
OpenNutriTracker copied to clipboard

Bug: App allows 0 as a valid Height value

Open isacostaf opened this issue 7 months ago • 1 comments

Bug description: The program allows the user to input 0 as a Height value

Expected behavior: The program should only validate the Height if it's not null or 0, since it's impossible for someone to have 0 cm or 0 ft as a height.

Environment: Web (Chrome)

Possible solution: Add validation to check if the height is different from 0. It would also be a good practice to include validation for others values that are usually impossible for someone to have as a height, like (1,2,3 cm...) As well as including validation for values that are too large (example: exceeding 3 meters).

isacostaf avatar May 14 '25 11:05 isacostaf

#218 implements the height input validation

JEdits20 avatar May 17 '25 12:05 JEdits20