Error to add a new ingredient wieght
Steps to Reproduce
- Go to the Nutritional plans and select one, then add a meal
- Click on the pencil to add an ingredient
- Search an ingredient and type the name
- In the weight field add a number less than 1.0 and the app sends an exception
Expected results: An error message or hint into the textfield to send an explaining the error
Actual results: The result is that the page pop and didn't save the ingredient
Logs
I am new to open source and I want to try to solve this issue , can I fork it ?
Hmm this should be a numeric integer input rather than a text field.
Yes feel free to fork, make the change (and test it) and then file a pull request here.
Note : I don't think it makes sense to log fractions of grams. There is no use for that AFAIK ?
Hi, I'd love to work on this issue if it's still available. Please let me know if I can take it!
@dhituval sure, go ahead. Just make the input an integer field, like Dieter suggested