Обновлен проект. Добавлена БД
This commit is contained in:
@@ -39,7 +39,10 @@ class AuthCubit extends Cubit<AuthState> {
|
||||
Future<void> sendCode(String code, String uid) async {
|
||||
final bool res = await _authInterface.sendCode(code, uid);
|
||||
|
||||
if (!res) toInitialState();
|
||||
if (!res) {
|
||||
toInitialState();
|
||||
return;
|
||||
}
|
||||
|
||||
globalRouter.replace(CollectionRoute());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user