mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-05 10:29:23 +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
|
@ -28,12 +28,15 @@ abstract class UnspentCoinsListViewModelBase with Store {
|
||||||
final amount = bitcoin.formatterBitcoinAmountToString(amount: elem.value) +
|
final amount = bitcoin.formatterBitcoinAmountToString(amount: elem.value) +
|
||||||
' ${wallet.currency.title}';
|
' ${wallet.currency.title}';
|
||||||
|
|
||||||
|
final info = _unspentCoinsInfo.values
|
||||||
|
.firstWhere((element) => element.walletId == wallet.id && element.hash == elem.hash);
|
||||||
|
|
||||||
return UnspentCoinsItem(
|
return UnspentCoinsItem(
|
||||||
address: elem.address,
|
address: elem.address,
|
||||||
amount: amount,
|
amount: amount,
|
||||||
hash: elem.hash,
|
hash: elem.hash,
|
||||||
isFrozen: elem.isFrozen,
|
isFrozen: elem.isFrozen,
|
||||||
note: elem.note,
|
note: info.note,
|
||||||
isSending: elem.isSending
|
isSending: elem.isSending
|
||||||
);
|
);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue