Skip to content

Commit

Permalink
Fix temporary account reload issue (#1273)
Browse files Browse the repository at this point in the history
  • Loading branch information
micahmo committed Apr 4, 2024
1 parent 0a184a0 commit d539da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/auth/bloc/auth_bloc.dart
Expand Up @@ -37,7 +37,7 @@ class AuthBloc extends Bloc<AuthEvent, AuthState> {

/// This event occurs whenever you switch to a different authenticated account
on<SwitchAccount>((event, emit) async {
emit(state.copyWith(status: AuthStatus.loading, isLoggedIn: false));
emit(state.copyWith(status: AuthStatus.loading, isLoggedIn: false, reload: event.reload));

Account? account = await Account.fetchAccount(event.accountId);
if (account == null) return emit(state.copyWith(status: AuthStatus.success, account: null, isLoggedIn: false));
Expand Down

0 comments on commit d539da1

Please sign in to comment.