This commit is contained in:
Kevin G Christiano 2021-01-07 09:29:11 -05:00
parent df5678f696
commit 62b02b2516
2 changed files with 5 additions and 5 deletions

View File

@ -319,9 +319,7 @@ import UIKit
model.updateUIDynamicError = { [weak self] in
MVMCoreDispatchUtility.performBlock(onMainThread: {
guard let self = self,
model.dynamicErrorMessage != nil
else { return }
guard let self = self else { return }
model.isValid = false
self.updateValidation(model.isValid ?? false)

View File

@ -23,8 +23,10 @@ import Foundation
public var title: String?
public var feedback: String?
public var dynamicErrorMessage: String? {
didSet {
updateUIDynamicError?()
didSet {
if dynamicErrorMessage != nil {
updateUIDynamicError?()
}
}
}
public var errorMessage: String?