update views + reduced providers in main app
[outofuni/tavern2.git] / lib / product_detail_component.dart
index 14ba7a7..59f9fab 100644 (file)
@@ -70,9 +70,12 @@ class ProductDetailComponent implements OnInit {
                        await _prodSrv.updateProd(
                                prod.id,
                                prod_name,
-                               double.parse(prod_price),
+                               prod_price,
                                prod_category
                        );
+                       prod.price=prod_price;
+                       prod.name=prod_name;
+                       prod.category=prod_category;
                }
        }