Dilden / helth

PWA for tracking nutrients and water
https://helth.app/
GNU General Public License v3.0
7 stars 1 forks source link

Amount calculated from OpenFoodFacts is still incorrect #171

Open Dilden opened 6 months ago

Dilden commented 6 months ago

In src/utils/sources where const amount (line 73) is set is still not quite right. Look through documentation on OpenFoodFacts to correctly calculate a serving size of returned nutrients.

jimmyhogoboom commented 4 months ago

Do you have an example product where the current logic gives incorrect output?

Dilden commented 4 months ago

The barcode 027000523858 returns incorrect information for me. It may be that the API has complete information but the calculation to get the correct values per serving is wrong.