Bug: Open Food database CO2eq overridden by 200kg after adding scanned emission
DGrothe-PhD opened this issue · 1 comments
DGrothe-PhD commented
Describe the bug
Scanned product is stored as having 200kg CO2eq instead of its actual value.
To Reproduce
Steps to reproduce the behavior:
- Go to Add Emission → Scan Product
- Scan a product which has a CO2eq value in Open Foods Database
- Confirm that the slider appears to set item count (preset: 1 item) and there is a CO2eq value (usually below 10 kg) shown.
- Press the
Add emission
button - Check the monthly emission screen and look at the item just stored
Expected behaviour
On monthly emission screen, an amount of CO2 for a food item taken from Open Foods Database should show the correct value.
Screenshots
Please find below.
** Please complete the following information (if applicable):**
- Device: iPhone 12]
- OS: iOS 16.5
- Version 0.10.0-50
** Product screenshots**
for easily retrying
** Scanning process**
And afterwards:
Additional context
(I was trying to debug but had couple of yarn issues so had to skip this.)
saurabhchatterjee23 commented
#386 fixed the issue in this PR