auth_change

This commit is contained in:
mohammad
2024-10-31 08:35:32 +03:00
parent f6a12f2e92
commit 7071f50d49

View File

@ -284,11 +284,13 @@ class AuthCubit extends Cubit<AuthState> {
await login(); await login();
} }
emit(AuthOtpSuccess()); emit(AuthOtpSuccess());
} else {
emit(AuthLoginError(message: 'Something went wrong'));
} }
// else {
// emit(AuthLoginError(message: 'Something went wrong'));
// }
} catch (failure) { } catch (failure) {
emit(AuthLoginError(message: 'Something went wrong')); emit(AuthErrorStatusWithoutMsg());
//emit(AuthLoginError(message: 'Something went wrong'));
return; return;
} }
} }