Skip to content

Commit

Permalink
receive fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mocodesmo committed May 2, 2024
1 parent 67c69a7 commit 3577bf7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/receive/bloc/receive_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ class ReceiveCubit extends Cubit<ReceiveState> {
if (state.paymentNetwork == ReceivePaymentNetwork.lightning)
emit(state.copyWith(defaultAddress: null));

final watchOnly = walletBloc.state.wallet!.watchOnly();
if (watchOnly)
if (!walletBloc.state.wallet!.mainWallet)
emit(state.copyWith(paymentNetwork: ReceivePaymentNetwork.bitcoin));

// final watchOnly = walletBloc.state.wallet!.watchOnly();
// if (watchOnly)
// emit(state.copyWith(paymentNetwork: ReceivePaymentNetwork.bitcoin));
loadAddress();
}

Expand Down

0 comments on commit 3577bf7

Please sign in to comment.