Fixed CW-61 app now saves notes permanently (#299)

* Fixed CW-61 app now saves notes permanently.
This commit is contained in:
Rafia Rahman Chowdhury 2022-03-31 18:00:22 +06:00 committed by GitHub
parent 3046581a91
commit dee69310ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,12 +28,15 @@ abstract class UnspentCoinsListViewModelBase with Store {
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
);
}));