|
@@ -181,12 +181,12 @@ class KMEnterVerificationCodeView: KMBaseXibView {
|
|
viewModel.$passwordErrorMessage
|
|
viewModel.$passwordErrorMessage
|
|
.receive(on: RunLoop.main)
|
|
.receive(on: RunLoop.main)
|
|
.sink { [weak self] newValue in
|
|
.sink { [weak self] newValue in
|
|
- self?.verifficationErrorLabel.stringValue = newValue
|
|
|
|
- if self?.viewModel.passwordErrorMessage.isEmpty == false {
|
|
|
|
- self?.verifficationErrorLabel.isHidden = true
|
|
|
|
|
|
+ self?.verifficationErrorLabel.stringValue = self?.viewModel.passwordErrorMessage ?? ""
|
|
|
|
+ if self?.verifficationErrorLabel.stringValue.isEmpty == false {
|
|
|
|
+ self?.verifficationErrorLabel.isHidden = false
|
|
self?.verifficationBox.borderColor = NSColor(named: "FA1E5D") ?? NSColor.red
|
|
self?.verifficationBox.borderColor = NSColor(named: "FA1E5D") ?? NSColor.red
|
|
} else {
|
|
} else {
|
|
- self?.verifficationErrorLabel.isHidden = false
|
|
|
|
|
|
+ self?.verifficationErrorLabel.isHidden = true
|
|
self?.verifficationBox.borderColor = NSColor(named: "DADBDE") ?? NSColor.red
|
|
self?.verifficationBox.borderColor = NSColor(named: "DADBDE") ?? NSColor.red
|
|
}
|
|
}
|
|
}
|
|
}
|