6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit c9ff3d80
Changed files
.../presentation/screens/concierge/bloc/concierge_cubit.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
Diff
diff --git a/comwell_key_app/lib/presentation/screens/concierge/bloc/concierge_cubit.dart b/comwell_key_app/lib/presentation/screens/concierge/bloc/concierge_cubit.dart
index 0de8306a..bb48c2bc 100644
--- a/comwell_key_app/lib/presentation/screens/concierge/bloc/concierge_cubit.dart
+++ b/comwell_key_app/lib/presentation/screens/concierge/bloc/concierge_cubit.dart
@@ -5,7 +5,9 @@ import 'package:comwell_key_app/presentation/screens/concierge/bloc/concierge_st
class ConciergeCubit extends BaseCubit<ConciergeState> {
final AuthenticationRepository _authenticationRepository;
- ConciergeCubit(this._authenticationRepository,) : super(const ConciergeState()) {
+ ConciergeCubit(
+ this._authenticationRepository,
+ ) : super(const ConciergeState()) {
init();
}
@@ -16,7 +18,9 @@ class ConciergeCubit extends BaseCubit<ConciergeState> {
safeEmit(state.copyWith(userToken: userToken, isLoading: false, error: AppError.none));
} catch (e, st) {
logError(e, st);
- safeEmit(state.copyWith(error: AppError.unknown(e.toString()), isLoading: false));
- }
+ safeEmit(state.copyWith(error: AppError.unknown(e.toString())));
+ } finally {
+ safeEmit(state.copyWith(isLoading: false));
+ }
}
-}
\ No newline at end of file
+}