Skip to content

Can't change the unit in nutrition game (Hunger Games) #285

@jusdekiwi

Description

@jusdekiwi

What

In the nutrition game on Hunger Games (https://hunger.openfoodfacts.org/nutrition), nothing happens when I click on the unit when it is %D (red arrow on screenshot). It works fine when the unit is g, mg or µg: the dropdown menu appears. But %D doesn't appear in the dropdown menu when we click on g/mg/µg, as shown on the screenshot below.

Image

Steps to reproduce the behavior:

  1. Go to (https://hunger.openfoodfacts.org/nutrition)
  2. Click on the unit of any nutrient
  3. See that you can't select %D
  4. If you're lucky and have a unit in %D, click on %D and see that you can't change the unit.

Expected behavior

When you click on a unit (except energy which is in kcal/kj), you should be able to select g, mg, µg and %D.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions