From dee69310cea0f8fe089c03813e2eb7cb1e52af14 Mon Sep 17 00:00:00 2001 From: Rafia Rahman Chowdhury <55042866+RafiaChy@users.noreply.github.com> Date: Thu, 31 Mar 2022 18:00:22 +0600 Subject: [PATCH] Fixed CW-61 app now saves notes permanently (#299) * Fixed CW-61 app now saves notes permanently. --- .../unspent_coins/unspent_coins_list_view_model.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/view_model/unspent_coins/unspent_coins_list_view_model.dart b/lib/view_model/unspent_coins/unspent_coins_list_view_model.dart index 1066d44ef..9eab240a4 100644 --- a/lib/view_model/unspent_coins/unspent_coins_list_view_model.dart +++ b/lib/view_model/unspent_coins/unspent_coins_list_view_model.dart @@ -27,13 +27,16 @@ abstract class UnspentCoinsListViewModelBase with Store { ObservableList get items => ObservableList.of(bitcoin.getUnspents(wallet).map((elem) { final amount = bitcoin.formatterBitcoinAmountToString(amount: elem.value) + ' ${wallet.currency.title}'; + + final info = _unspentCoinsInfo.values + .firstWhere((element) => element.walletId == wallet.id && element.hash == elem.hash); return UnspentCoinsItem( address: elem.address, amount: amount, hash: elem.hash, isFrozen: elem.isFrozen, - note: elem.note, + note: info.note, isSending: elem.isSending ); }));