fix
This commit is contained in:
parent
bd054b0a9f
commit
47876a8c7c
1 changed files with 2 additions and 1 deletions
|
@ -103,7 +103,8 @@ class _SupplyPageState extends State<SupplyPage> {
|
||||||
onSelected: (String selection) async {
|
onSelected: (String selection) async {
|
||||||
var price = _price.isEmpty
|
var price = _price.isEmpty
|
||||||
? await API()
|
? await API()
|
||||||
.getLatestPrice(widget.item.id, variant)
|
.getLatestPrice(widget.item.id, variant,
|
||||||
|
origin: selection)
|
||||||
.then((x) => x.value.toStringAsFixed(2))
|
.then((x) => x.value.toStringAsFixed(2))
|
||||||
: _price;
|
: _price;
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|
Loading…
Reference in a new issue