forked from openfoodfacts/openfoodfacts-androidapp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: "No nutrition facts" switch not working as intended (openfoodfac…
…ts#4583) * Nutritional facts editor: if the switch on "no nutrition data" is ON, the rest of the UI shouldn't be displayed + no other field sent to the API * When we have nutrition data, the `no_nutrition_data` field sent to the API is null * Force an "on" or "off" value to no nutrition data field * Use constants where possible * No nutrition data "off" value is actually ""
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters