diff --git a/lib/pages/supply.dart b/lib/pages/supply.dart index e02ea3f..2597833 100644 --- a/lib/pages/supply.dart +++ b/lib/pages/supply.dart @@ -33,7 +33,7 @@ class _SupplyPageState extends State { _formKey.currentState!.save(); API() - .supplyItem(widget.item.name, variant, "${_priceController.text} €", + .supplyItem(widget.item.id, variant, "${_priceController.text} €", _selectedOrigin, _selectedLocation, _noteController.text) .then((_) { ScaffoldMessenger.of(context).showSnackBar(