Open Dilden opened 6 months ago
Do you have an example product where the current logic gives incorrect output?
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.
In
src/utils/sources
whereconst amount
(line 73) is set is still not quite right. Look through documentation on OpenFoodFacts to correctly calculate a serving size of returned nutrients.