Skip to content

Commit

Permalink
RECEIVE - one wallet switching fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mocodesmo committed Dec 29, 2024
1 parent 92e1798 commit a010709
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/receive/bloc/receive_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ReceiveCubit extends Cubit<ReceiveState> {
),
) {
loadAddress();
if (walletBloc != null) updateWalletBloc(walletBloc);
if (walletBloc != null) updateWalletBloc(walletBloc, fromInit: true);
}

final WalletAddress _walletAddress;
Expand All @@ -36,8 +36,11 @@ class ReceiveCubit extends Cubit<ReceiveState> {
return;
}

Future<void> updateWalletBloc(WalletBloc walletBloc) async {
// if (state.oneWallet) return;
Future<void> updateWalletBloc(
WalletBloc walletBloc, {
bool fromInit = false,
}) async {
if (state.oneWallet && !fromInit) return;
emit(
state.copyWith(
walletBloc: walletBloc,
Expand Down

0 comments on commit a010709

Please sign in to comment.