Bug fixes

This commit is contained in:
Abdullah Alassaf
2024-06-30 15:10:01 +03:00
parent 9b37545691
commit 288ea6a1e2
8 changed files with 112 additions and 97 deletions

View File

@ -253,7 +253,7 @@ class AuthCubit extends Cubit<AuthState> {
emit(AuthLoginError(message: 'Something went wrong'));
}
} catch (failure) {
emit(AuthLoginError(message: failure.toString()));
emit(AuthLoginError(message: 'Something went wrong'));
return;
}
}
@ -268,7 +268,7 @@ class AuthCubit extends Cubit<AuthState> {
(Route route) => false,
);
} catch (failure) {
emit(AuthLogoutError(message: failure.toString()));
emit(AuthLogoutError(message: 'Something went wrong'));
return;
}
}