Skip to content

Commit

Permalink
refactor: optional check of BaseWalletType and BBWalletType
Browse files Browse the repository at this point in the history
  • Loading branch information
ethicnology committed Dec 23, 2024
1 parent 9488113 commit 5c19111
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/receive/bloc/receive_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ class ReceiveCubit extends Cubit<ReceiveState> {
await isPayjoinEnabled();
await loadAddress();

final baseType = state.walletBloc!.state.wallet!.baseWalletType;

if (state.paymentNetwork == PaymentNetwork.bitcoin &&
state.defaultAddress != null &&
state.isPayjoin) {
state.isPayjoin &&
baseType == BaseWalletType.Bitcoin) {
receivePayjoin(
state.walletBloc!.state.wallet!.isTestnet(),
state.defaultAddress!.address,
Expand Down

0 comments on commit 5c19111

Please sign in to comment.