fix(auth): prevent concurrent sendCodeSilently and add edge case tests
This commit is contained in:
@@ -167,7 +167,7 @@ class RegisterCubit extends Cubit<RegisterState> {
|
||||
}
|
||||
|
||||
Future<void> sendCodeSilently() async {
|
||||
if (!state.isStep1Valid) return;
|
||||
if (!state.isStep1Valid || state.isSending) return;
|
||||
|
||||
emit(state.copyWith(isSending: true));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user