diff --git a/TinkoffASDKUI/TinkoffASDKUI/Modules/MainForm/Presenter/MainFormPresenter.swift b/TinkoffASDKUI/TinkoffASDKUI/Modules/MainForm/Presenter/MainFormPresenter.swift index 82d0594c..d0f8df1f 100644 --- a/TinkoffASDKUI/TinkoffASDKUI/Modules/MainForm/Presenter/MainFormPresenter.swift +++ b/TinkoffASDKUI/TinkoffASDKUI/Modules/MainForm/Presenter/MainFormPresenter.swift @@ -410,7 +410,7 @@ extension MainFormPresenter { return } - if dataState.hasCards == false { + if !dataState.hasCards { payButtonPresenter.set(enabled: true) } else { let isCvcValid = savedCardPresenter.isValid diff --git a/TinkoffASDKUI/TinkoffASDKUI/UIComponents/EmailView/Presenter/EmailViewPresenter.swift b/TinkoffASDKUI/TinkoffASDKUI/UIComponents/EmailView/Presenter/EmailViewPresenter.swift index fba23f94..d3fc1568 100644 --- a/TinkoffASDKUI/TinkoffASDKUI/UIComponents/EmailView/Presenter/EmailViewPresenter.swift +++ b/TinkoffASDKUI/TinkoffASDKUI/UIComponents/EmailView/Presenter/EmailViewPresenter.swift @@ -81,7 +81,7 @@ extension EmailViewPresenter { } private func viewSetTextFieldHeaderState() { - guard isFieldDidBeginEditing || currentEmail.isEmpty == false else { + guard isFieldDidBeginEditing || !currentEmail.isEmpty else { view?.setTextFieldHeaderNormal() return }