NMF-earth / nmf-app

Understand and reduce your carbon footprint 🌱 iOS & Android.
https://nmf.earth
GNU General Public License v3.0
487 stars 156 forks source link

[#379] Fixing the bug where scanned products will show 200 as CO2e #386

Closed saurabhchatterjee23 closed 8 months ago

saurabhchatterjee23 commented 8 months ago

✅ I have read the contributing file

Summary

https://github.com/NMF-earth/nmf-app/issues/379

This bug happened if the slider was not moved before adding the scanned product to the emission lists. This happened because in the default value that was passed to the packageScanScreen the emission value that is read from Open Food database was not taken in consideration

Changelog

Demo

PierreBresson commented 8 months ago

Works well ✅ Thanks @saurabhchatterjee23