fix: bloc
This commit is contained in:
@@ -23,10 +23,10 @@ class LoginFormBloc extends Bloc<LoginFormEvent, LoginFormState> {
|
||||
) {
|
||||
return event.map(
|
||||
emailChanged: (e) async {
|
||||
emit(state.copyWith(email: e.email));
|
||||
emit(state.copyWith(email: e.email, failureOrAuthOption: none()));
|
||||
},
|
||||
passwordChanged: (e) async {
|
||||
emit(state.copyWith(password: e.password));
|
||||
emit(state.copyWith(password: e.password, failureOrAuthOption: none()));
|
||||
},
|
||||
submitted: (e) async {
|
||||
Either<AuthFailure, Auth>? failureOrAuth;
|
||||
|
||||
Reference in New Issue
Block a user