Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per Serving drop down doesn't calculate and adjust nutrition value from set quantity to the per serving #5184

Open
aayushsrathore opened this issue Mar 6, 2024 · 0 comments
Labels
bug Produces incorrect or unexpected result or behaviour. scan search

Comments

@aayushsrathore
Copy link

What

  • There are two nutrition labels, one is for the set amount of quantity (suppose per 100g), and the other is for each serving (suppose 50g), when you choose the per serving option in the drop-down menu of the nutritional value in the home page of any product, it doesn't adjust itself to the per servings quantity.
    Example- If a product has 40g of protein per 100g and you want to see per serving, then it would still show 40g and not adjust to 20g.

Steps to reproduce the behavior

  1. Go to the app and search/scan any food product.
  2. Scroll down to the "Health" section, within it, go to the "Nutrition facts" section.
  3. In the drop-down to adjust to per serving values, click the per serving option.
  4. See that the nutritional values didn't change.

Expected behavior

The values should be calculated and shown adjusted to the per serving size.

Why

  • It's important because it adjusts the values and shows the per serving nutritional values instead of the entire weight of the package, which is important for larger quantity products.

Part of

  • I couldn't find any, if there is something that I'm missing then mention it in the comments.

Screenshot/Mockup/Before-After

Screenshot_2024-03-07-01-31-55-44_1d77bc0953a7db61673d4bea4cd4be8a.jpg

Screenshot_2024-03-07-01-31-59-07_1d77bc0953a7db61673d4bea4cd4be8a.jpg

Important information

  • Device: Realme 9 Pro Plus
  • OS: Android 13
  • App Version: 4.13.1 + 1279

Open Food Facts username

aayushsrathore

Barcode(s) of the product(s)

All

Project

Open Food Facts

Installation method

Google PlayStore

@aayushsrathore aayushsrathore added the bug Produces incorrect or unexpected result or behaviour. label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Produces incorrect or unexpected result or behaviour. scan search
Projects
Status: No status
Development

No branches or pull requests

1 participant