forked from eatvio/eatvio_app
fix: reg, verify, loaders, grey screen when like
This commit is contained in:
@@ -22,7 +22,11 @@ class SettingsCubit extends Cubit<SettingsState> {
|
||||
final profile = await profileRepository.getMyProfile();
|
||||
late final ConsultationRequestModel? consultantInfo;
|
||||
try {
|
||||
consultantInfo = await consultantRepository.getMyRequestStatus(profile.slug);
|
||||
if (profile.phoneConfirmationState.contains('confirmed')) {
|
||||
consultantInfo = await consultantRepository.getMyRequestStatus(profile.slug);
|
||||
} else {
|
||||
consultantInfo = null;
|
||||
}
|
||||
} catch (e) {
|
||||
consultantInfo = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user