From 7be7f59347935edee0c3bfb2fe5b69fab4f8149e Mon Sep 17 00:00:00 2001 From: Ivan Glushko Date: Wed, 26 Jul 2023 12:20:12 +0400 Subject: [PATCH] =?UTF-8?q?*=20[EACQAPW-5657]=20-=204)=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=BF=D0=BE=20=D0=BC=D1=80-=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Modules/MainForm/Presenter/MainFormPresenter.swift | 2 +- .../UIComponents/EmailView/Presenter/EmailViewPresenter.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/TinkoffASDKUI/TinkoffASDKUI/Modules/MainForm/Presenter/MainFormPresenter.swift b/TinkoffASDKUI/TinkoffASDKUI/Modules/MainForm/Presenter/MainFormPresenter.swift index 82d0594c0..d0f8df1f7 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 fba23f946..d3fc15684 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 }