diff --git a/lib/pages/supply.dart b/lib/pages/supply.dart index 89b3b74..64ac6a2 100644 --- a/lib/pages/supply.dart +++ b/lib/pages/supply.dart @@ -99,10 +99,13 @@ class _SupplyPageState extends State { }); }, onSelected: (String selection) async { - var price = - await API().getLatestPrice(widget.item.id, variant); + var price = _price.isEmpty + ? await API() + .getLatestPrice(widget.item.id, variant) + .then((x) => x.value.toStringAsFixed(2)) + : _price; setState(() { - _price = price.value.toStringAsFixed(2); + _price = price; _selectedOrigin = selection; }); },