From 34d5fcb52dee85c4f74180ee74f08bdaff262b95 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 24 Aug 2020 13:45:19 +0200 Subject: [PATCH] Fixed validating BIC --- .../BankingiOSApp/ui/views/TransferMoneyDialog.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift index b597b7f5..4fdbf75a 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/TransferMoneyDialog.swift @@ -235,8 +235,7 @@ struct TransferMoneyDialog: View { } } - // TODO: implement a better check if entered BIC is valid (e.g. if format is ABCDDEXX123) - self.isValidRemitteeBicEntered = self.remitteeBic.count == 8 || self.remitteeBic.count == 11 + self.isValidRemitteeBicEntered = inputValidator.validateBic(bicToTest: remitteeBic).validationSuccessful }