Skip to content

Commit

Permalink
fix: error updating state on password change (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolantean authored Oct 31, 2023
1 parent 29cfc4a commit 348871f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ui/signin/signin_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class SignInCubit extends Cubit<SignInBaseState> {

void changeEmail(String email) => emit(state.copyWith(email: email));

void changePassword(String email) => emit(state.copyWith(email: email));
void changePassword(String password) =>
emit(state.copyWith(password: password));

Future<void> signIn() => _sessionRepository
.signInUser(email: state.email!, password: state.password!)
Expand Down

0 comments on commit 348871f

Please sign in to comment.