Skip to content

Commit cc5f197

Browse files
committed
fix(authentication): add flag to clear cooldown end time
- Update AuthenticationBloc to include clearCooldownEndTime flag when resetting status to initial - This change ensures proper reset of cooldown state and prevents potential issues with leftover values
1 parent d912f48 commit cc5f197

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/authentication/bloc/authentication_bloc.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,12 @@ class AuthenticationBloc
203203
Emitter<AuthenticationState> emit,
204204
) {
205205
if (state.status == AuthenticationStatus.requestCodeCooldown) {
206-
emit(state.copyWith(status: AuthenticationStatus.initial));
206+
emit(
207+
state.copyWith(
208+
status: AuthenticationStatus.initial,
209+
clearCooldownEndTime: true,
210+
),
211+
);
207212
}
208213
}
209214

0 commit comments

Comments
 (0)