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)) {