mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
Fixed CW-61 app now saves notes permanently (#299)
* Fixed CW-61 app now saves notes permanently.
This commit is contained in:
@@ -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
|
||||
);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user