mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-03-05 08:14:34 +00:00
Fixed CW-61 app now saves notes permanently (#299)
* Fixed CW-61 app now saves notes permanently.
This commit is contained in:
parent
3046581a91
commit
dee69310ce
1 changed files with 4 additions and 1 deletions
|
@ -27,13 +27,16 @@ abstract class UnspentCoinsListViewModelBase with Store {
|
|||
ObservableList<UnspentCoinsItem> 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
|
||||
);
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue