fix: reg, verify, loaders, grey screen when like

This commit is contained in:
mso7nueh
2025-07-30 12:34:27 +03:00
parent aacbc0ce5a
commit 09a1ec0947
13 changed files with 260 additions and 144 deletions

View File

@@ -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;
}