forked from eatvio/eatvio_app
Merge pull request 'feat(consultant)' (#888) from misha/eatvio_app:main into main
Reviewed-on: eatvio/eatvio_app#888 Reviewed-by: mso7nueh <mso7nueh@mail.ru>
This commit is contained in:
@@ -83,8 +83,12 @@ class RegisterConsultantCubit extends Cubit<RegisterConsultantState> {
|
||||
}
|
||||
|
||||
Future<List<ConsultantCertPhotoModel>> _fetchVisibleCertPhotos() async {
|
||||
final photos = await consultantRepository.getConsultantCertPhotos();
|
||||
return _onlyVisible(photos);
|
||||
try {
|
||||
final photos = await consultantRepository.getConsultantCertPhotos();
|
||||
return _onlyVisible(photos);
|
||||
} catch (e) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
List<ConsultantCertPhotoModel> _onlyVisible(List<ConsultantCertPhotoModel> photos) {
|
||||
|
||||
Reference in New Issue
Block a user