Skip to content

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

@aayushsrathore

Description

@aayushsrathore

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions