From 54e3218efb415a25acd171ce35570f55228a07c7 Mon Sep 17 00:00:00 2001 From: monsieurtanuki Date: Fri, 18 Feb 2022 20:19:15 +0100 Subject: [PATCH] feat: #944 - merge fix --- .../smooth_app/lib/pages/product/nutrition_page_loaded.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart b/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart index f501b02d8f6..fba0be8893a 100644 --- a/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart +++ b/packages/smooth_app/lib/pages/product/nutrition_page_loaded.dart @@ -327,11 +327,7 @@ class _NutritionPageLoadedState extends State { _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,