Fixed CW-61 app now saves notes permanently (#299)
* Fixed CW-61 app now saves notes permanently.
Rafia Rahman Chowdhury committed
Mar 31, 2022 at 18:00 UTC
dee69310cea0f8fe089c03813e2eb7cb1e52af14
1 file changed
+4
-1
lib/view_model/unspent_coins/unspent_coins_list_view_model.dart
+4
-1
@@ -27,13 +27,16 @@ abstract class UnspentCoinsListViewModelBase with Store {
27
ObservableList<UnspentCoinsItem> get items => ObservableList.of(bitcoin.getUnspents(wallet).map((elem) {
28
final amount = bitcoin.formatterBitcoinAmountToString(amount: elem.value) +
29
' ${wallet.currency.title}';
30
+
31
+ final info = _unspentCoinsInfo.values
32
+ .firstWhere((element) => element.walletId == wallet.id && element.hash == elem.hash);
33
34
return UnspentCoinsItem(
35
address: elem.address,
36
amount: amount,
37
hash: elem.hash,
38
isFrozen: elem.isFrozen,
36
- note: elem.note,
39
+ note: info.note,
40
isSending: elem.isSending
41
);
42
}));