Browse Source

kyc bug fixed

pull/1/head
gme_2 6 years ago
parent
commit
2527b99492
  1. 16
      GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift

16
GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift

@ -76,45 +76,45 @@ class KycInteractor {
}
})
if let value = model?.firstName, value != "" {
if let value = model?.firstName, value.isEmpty {
sucks = false
errorsDick[KycForm1FieldKeys.firstName] = StringConstants().firstNameError
}
if let value = model?.gender, value != "" {
if let value = model?.gender, value.isEmpty {
sucks = false
errorsDick[KycForm1FieldKeys.gender] = StringConstants().genderError
}
if let value = model?.nativeCountry, value != "" {
if let value = model?.nativeCountry, value.isEmpty {
sucks = false
errorsDick[KycForm1FieldKeys.nativeCountry] = StringConstants().nativeCountryError
}
if let value = model?.country, value != "" {
if let value = model?.country, value.isEmpty {
sucks = false
errorsDick[KycForm1FieldKeys.country] = StringConstants().addressError
}
if let value = model?.occupation, value != "" {
if let value = model?.occupation, value.isEmpty {
sucks = false
errorsDick[KycForm1FieldKeys.occupation] = StringConstants().occupationError
}
if let value = model?.province, value != "" {
if let value = model?.province, value.isEmpty {
sucks = false
errorsDick[KycForm1FieldKeys.province] = StringConstants().provinceError
}
if let email = model?.email, email != "" {
if let email = model?.email, email.isEmpty {
if !Utility.isValidEmail(email: email){
sucks = false
errorsDick[KycForm1FieldKeys.email] = StringConstants().emailError
}
}
if let mobileNo = model?.mobile, mobileNo != "", mobileNo.count != AppConstants.maxKoreanMobileNoLength {
if let mobileNo = model?.mobile, mobileNo.isEmpty , mobileNo.count != AppConstants.maxKoreanMobileNoLength {
sucks = false
errorsDick[KycForm1FieldKeys.mobileNumber] = StringConstants().mobileNumberError
}

Loading…
Cancel
Save