From c5b512f161a6cb4d71f5b5087136c9929bc703b4 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Thu, 4 Oct 2018 15:33:56 +0900 Subject: [PATCH] error message made consistent --- .../Interactor/KycInteractor.swift | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift b/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift index 704c10b5..71a6f224 100644 --- a/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift +++ b/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift @@ -95,16 +95,20 @@ class KycInteractor { if $0.key == KycForm2FieldKeys.issueDate { if shoulValidateIssueDate { sucks = false // isValid = false - errorsDick[$0.key] = "\($0.key) filed is required" + errorsDick[$0.key] = "please select \($0.key)" } - }else if $0.key == KycForm2FieldKeys.expiryDate { + }else if ( $0.key == KycForm2FieldKeys.expiryDate) { if shoulValidateExpiryDate { sucks = false // isValid = false - errorsDick[$0.key] = "\($0.key) filed is required" + errorsDick[$0.key] = "please select \($0.key)" } - }else { + }else if $0.key == KycForm2FieldKeys.bank || ( $0.key == KycForm2FieldKeys.verificationId) || ( $0.key == KycForm2FieldKeys.sourceOfFund) { + sucks = false // isValid = false + errorsDick[$0.key] = "please select \($0.key)" + } + else { sucks = false // isValid = false - errorsDick[$0.key] = "\($0.key) filed is required" + errorsDick[$0.key] = "please enter a valid \($0.key)" } }