wger
wger copied to clipboard
BMI calculator only takes cm for height even when Imperial units are selected in preferences
Steps to Reproduce
- ... Current version 2.1a3.dev0 docker
- ... enter the nutrition BMI calculator
- ...
Expected results: I expect the data entry in the BMI calculator to honour the units I select in the user preferences.
Actual results: The units are set to cm and dont allow imperial units to be used in the BMI calculation.
Hello, would like to claim this issue. Thinking of having the input field take in feet and inches when the user has selected imperial units as its preference and then converting that to cm on the backend and making the same function calls that are currently made for cm in order to keep it consistent.
Please let me know your thoughts on this.
@deddc23efb @rolandgeider
Hi @bernardokoen
Yeah, in general support for imperial units could be improved. Here we could show change the input based on the user preferences, always saving to cm seems like a good idea.
Additionally, this seems like a good opportunity to implement the page in react