From 3dac6cb3a7f4fc53e0c119115f4129d852a9522f Mon Sep 17 00:00:00 2001 From: "Aamir.Muhammad" Date: Wed, 3 Jun 2026 15:25:49 +0300 Subject: [PATCH] Last Login UAE Fix --- .../authentication/authentication_view_model.dart | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/features/authentication/authentication_view_model.dart b/lib/features/authentication/authentication_view_model.dart index 8685a947..7393a88f 100644 --- a/lib/features/authentication/authentication_view_model.dart +++ b/lib/features/authentication/authentication_view_model.dart @@ -1668,14 +1668,26 @@ class AuthenticationViewModel extends ChangeNotifier { patientId: _appState.getSelectDeviceByImeiRespModelElement!.patientId!, patientType: _appState.getSelectDeviceByImeiRespModelElement!.patientType, patientOutSa: _appState.getSelectDeviceByImeiRespModelElement!.outSa == true ? 1 : 0, + projectOutSa: _appState.getSelectDeviceByImeiRespModelElement!.outSa, loginType: loginType, languageId: _appState.getLanguageID(), latitude: _appState.userLat, longitude: _appState.userLong, mobileNo: _appState.getSelectDeviceByImeiRespModelElement!.mobile!, patientMobileNumber: int.parse(_appState.getSelectDeviceByImeiRespModelElement!.mobile!), - nationalId: _appState.getSelectDeviceByImeiRespModelElement!.identificationNo) + nationalId: _appState.getSelectDeviceByImeiRespModelElement!.identificationNo, + zipCode: _appState.getSelectDeviceByImeiRespModelElement!.isOther == true + ? "0" + : _appState.getSelectDeviceByImeiRespModelElement!.outSa == true + ? CountryEnum.unitedArabEmirates.countryCode + : CountryEnum.saudiArabia.countryCode, + isRegister: false, + logInTokenId: "", + searchType: 2, + patientIdentificationId: "0", + otpSendType: loginType) .toJson()); + resultEither.fold((failure) async => await _errorHandlerService.handleError(failure: failure), (apiResponse) async { if (apiResponse.messageStatus == 1) { dynamic deviceInfo = apiResponse.data['List_MobileLoginInfo'];