From 6847d22c89177ee197e29368f3a19d2d3246a579 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Thu, 4 Oct 2018 15:26:28 +0900 Subject: [PATCH] error message made consistence --- .../Kyc/Application Logic/Interactor/KycInteractor.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 b2470464..704c10b5 100644 --- a/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift +++ b/GMERemittance/Module/New Group/Kyc/Application Logic/Interactor/KycInteractor.swift @@ -46,7 +46,10 @@ class KycInteractor { formDick.forEach({ if ($0.value ?? "").isEmpty { sucks = false // isValid = false - errorsDick[$0.key] = "\($0.key) feild is required" + errorsDick[$0.key] = "please enter a valid \($0.key)" + if ($0.key == KycForm1FieldKeys.gender) || ($0.key == KycForm1FieldKeys.nativeCountry) || ($0.key == KycForm1FieldKeys.province) || ($0.key == KycForm1FieldKeys.occupation) { + errorsDick[$0.key] = "please select \($0.key)" + } } })