From 3c20bb86f950c7c70b4deadd31c12f68ef5cea81 Mon Sep 17 00:00:00 2001 From: ethicnology Date: Mon, 30 Dec 2024 09:06:50 -0500 Subject: [PATCH 1/2] fix: wallet.utxos not updated when empty --- lib/wallet/bloc/wallet_bloc.dart | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/wallet/bloc/wallet_bloc.dart b/lib/wallet/bloc/wallet_bloc.dart index 8bb884ba..5ff30329 100644 --- a/lib/wallet/bloc/wallet_bloc.dart +++ b/lib/wallet/bloc/wallet_bloc.dart @@ -392,11 +392,7 @@ class WalletBloc extends Bloc { } case UpdateWalletTypes.utxos: - if (eventWallet.utxos.isNotEmpty) { - storageWallet = storageWallet!.copyWith( - utxos: eventWallet.utxos, - ); - } + storageWallet = storageWallet!.copyWith(utxos: eventWallet.utxos); case UpdateWalletTypes.settings: if (eventWallet.backupTested != storageWallet!.backupTested) { From d15f8fd02cd29b0b38e043e3f0d69450e3fe5d03 Mon Sep 17 00:00:00 2001 From: ethicnology Date: Mon, 30 Dec 2024 09:13:54 -0500 Subject: [PATCH 2/2] refactor: edit warning label regarding payjoin --- lib/receive/receive_page.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/receive/receive_page.dart b/lib/receive/receive_page.dart index 70c8b20d..cbfea9ea 100644 --- a/lib/receive/receive_page.dart +++ b/lib/receive/receive_page.dart @@ -1131,14 +1131,14 @@ class _ReceiveDisplayAddressState extends State { child: const ListTile( leading: Icon(Icons.warning, color: Colors.orange), title: Text( - 'Payjoin transactions', + 'Payjoin', style: TextStyle( fontWeight: FontWeight.bold, color: Colors.black, ), ), subtitle: Text( - 'Wallet does not meet the criteria', + 'To receive with Payjoin, your wallet must already hold Bitcoin', style: TextStyle(color: Colors.black87), ), ),