Skip to content

Commit

Permalink
Merge pull request #408 from SatoshiPortal/fix-no-wallet-utxos
Browse files Browse the repository at this point in the history
Fix no wallet utxos
  • Loading branch information
ethicnology authored Dec 30, 2024
2 parents a010709 + d15f8fd commit 16199d1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/receive/receive_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1131,14 +1131,14 @@ class _ReceiveDisplayAddressState extends State<ReceiveDisplayAddress> {
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),
),
),
Expand Down
6 changes: 1 addition & 5 deletions lib/wallet/bloc/wallet_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,7 @@ class WalletBloc extends Bloc<WalletEvent, WalletState> {
}

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) {
Expand Down

0 comments on commit 16199d1

Please sign in to comment.