From 4b3c986dc23a675b3cce0b7c56aec6839acc05a8 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Sun, 3 May 2026 10:50:22 +0300 Subject: [PATCH] updates --- .../authentication/authentication_view_model.dart | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/lib/features/authentication/authentication_view_model.dart b/lib/features/authentication/authentication_view_model.dart index 066464b9..385d3e76 100644 --- a/lib/features/authentication/authentication_view_model.dart +++ b/lib/features/authentication/authentication_view_model.dart @@ -284,10 +284,14 @@ class AuthenticationViewModel extends ChangeNotifier { // Validate based on selected country if (selectedCountrySignup == CountryEnum.saudiArabia) { - if (!ValidationUtils.validateIqama(nationalIdController.text)) { - _nationalIdError = LocaleKeys.pleaseEnterAValidIqamaID.tr(); - notifyListeners(); - return false; + if (cleanedId.length == 10) { + if (!ValidationUtils.validateIqama(nationalIdController.text)) { + _nationalIdError = LocaleKeys.pleaseEnterAValidIqamaID.tr(); + notifyListeners(); + return false; + } + } else { + return true; } } else if (selectedCountrySignup == CountryEnum.unitedArabEmirates) { if (!ValidationUtils.validateUaeNationalId(nationalIdController.text)) {