Enhanced discount input. It was possible to remove a discount that has not been saved yet.
This commit is contained in:
@ -208,7 +208,7 @@ class _DeliveryDiscountState extends State<DeliveryDiscount> {
|
||||
),
|
||||
),
|
||||
OutlinedButton(
|
||||
onPressed: _discountValue > 0 ? _resetValues : null,
|
||||
onPressed: _discountValue > 0 && widget.discount != null ? _resetValues : null,
|
||||
child: const Text("Gutschrift entfernen"),
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user