From cd415e87e8c32ebf665a78eae1376387671544b2 Mon Sep 17 00:00:00 2001 From: Sharma Elanthiraiyan Date: Tue, 9 Apr 2024 11:26:08 +0530 Subject: [PATCH] Add condition and update comment for clarity. --- .../Get Started/GetStartedViewController.swift | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/WordPressAuthenticator/Unified Auth/View Related/Get Started/GetStartedViewController.swift b/WordPressAuthenticator/Unified Auth/View Related/Get Started/GetStartedViewController.swift index 86455e23..a9829395 100644 --- a/WordPressAuthenticator/Unified Auth/View Related/Get Started/GetStartedViewController.swift +++ b/WordPressAuthenticator/Unified Auth/View Related/Get Started/GetStartedViewController.swift @@ -825,13 +825,14 @@ private extension GetStartedViewController { self?.handleSiteCredentialsButtonTapped() } } else { - // Add a "Continue" button here as the `continueButton` at the top - // will not be displayed for `signInUsingSiteCredentials` screen mode. + // Add a "Continue" button here as the `continueButton` at the top will be hidden // - buttonViewController.setupTopButton(title: ButtonConfiguration.Continue.title, - isPrimary: true, - accessibilityIdentifier: ButtonConfiguration.Continue.accessibilityIdentifier) { [weak self] in - self?.handleSubmitButtonTapped() + if showsContinueButtonAtTheBottom { + buttonViewController.setupTopButton(title: ButtonConfiguration.Continue.title, + isPrimary: true, + accessibilityIdentifier: ButtonConfiguration.Continue.accessibilityIdentifier) { [weak self] in + self?.handleSubmitButtonTapped() + } } // Setup Sign in with site credentials button