Skip to content

Commit

Permalink
feat: openfoodfacts#944 - merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieurtanuki committed Feb 18, 2022
1 parent 94b3c3c commit 54e3218
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,7 @@ class _NutritionPageLoadedState extends State<NutritionPageLoaded> {
_nutritionContainer.setControllerText(key, controller.text);
}
// minimal product: we only want to save the nutrients
final Product inputProduct = Product(
barcode: widget.product.barcode,
nutriments: nutriments,
servingSize: servingSize,
);
final Product inputProduct = _nutritionContainer.getProduct();

final bool savedAndRefreshed = await ProductRefresher().saveAndRefresh(
context: context,
Expand Down

0 comments on commit 54e3218

Please sign in to comment.