mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
fix: fiat amount mapping key in unspent coins list (#2785)
This commit is contained in:
@@ -179,7 +179,7 @@ class UnspentCoinsListFormState extends State<UnspentCoinsListForm> {
|
||||
final item = unspentCoinsListViewModel.items[index];
|
||||
return Observer(
|
||||
builder: (_) {
|
||||
final fiatAmount = unspentCoinsListViewModel.fiatAmounts[item.hash] ?? '';
|
||||
final fiatAmount = unspentCoinsListViewModel.fiatAmounts[item.amount] ?? '';
|
||||
return GestureDetector(
|
||||
onTap: () => Navigator.of(context).pushNamed(
|
||||
Routes.unspentCoinsDetails,
|
||||
|
||||
@@ -76,7 +76,7 @@ abstract class UnspentCoinsListViewModelBase with Store {
|
||||
final formatted = formatAmountToString(item.value);
|
||||
final cryptoAmount = double.tryParse(formatted.replaceAll(',', '')) ?? 0.0;
|
||||
final fiatValue = price * cryptoAmount;
|
||||
result[item.hash] = fiatCurrency.title + ' ' + fiatValue.toStringAsFixed(2);
|
||||
result[item.amount] = fiatCurrency.title + ' ' + fiatValue.toStringAsFixed(2);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user