6177214e-ce7c-49e3-99de-ff9721b26f63 — Commit ebb56957

AuthorNKL<nikolaj.king@gmail.com>
Date2025-01-13 10:37:29 +0100
cleaned pr

Changed files

comwell_key_app/lib/home/bloc/home_state.dart    | 2 --
 comwell_key_app/lib/login/cubit/login_cubit.dart | 4 +---
 2 files changed, 1 insertion(+), 5 deletions(-)

Diff

diff --git a/comwell_key_app/lib/home/bloc/home_state.dart b/comwell_key_app/lib/home/bloc/home_state.dart
index 13474993..856e0912 100644
--- a/comwell_key_app/lib/home/bloc/home_state.dart
+++ b/comwell_key_app/lib/home/bloc/home_state.dart
@@ -11,8 +11,6 @@ final class HomeState extends Equatable {
});
-
-
const HomeState.unknown() : this._(status: HomeStatus.unknown);
const HomeState.setupStarted() : this._(status: HomeStatus.setupStarted);
const HomeState.setupComplete() : this._(status: HomeStatus.setupComplete);
diff --git a/comwell_key_app/lib/login/cubit/login_cubit.dart b/comwell_key_app/lib/login/cubit/login_cubit.dart
index 54a82f54..feeffcdc 100644
--- a/comwell_key_app/lib/login/cubit/login_cubit.dart
+++ b/comwell_key_app/lib/login/cubit/login_cubit.dart
@@ -2,20 +2,18 @@ import 'package:bloc/bloc.dart';
import 'package:comwell_key_app/authentication/authentication_repository.dart';
import 'package:equatable/equatable.dart';
-
part 'login_state.dart';
class LoginCubit extends Cubit<LoginState> {
final AuthenticationRepository authenticationRepository;
LoginCubit({required this.authenticationRepository}) : super(LoginInitial());
- void login() async {
+ void login() {
try {
// Call the login method from the authenticationRepository
authenticationRepository.logIn();
emit(LoginSuccessful());
-
} catch (e) {
emit(LoginError(e.toString()));
}