From e25737f4808e712fcf5928aede3eb5d0c984b343 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Tue, 27 Jul 2021 11:07:51 +0200 Subject: [PATCH] Do not display smart buttons if current states is not onboarded --- modules/ppcp-button/services.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-button/services.php b/modules/ppcp-button/services.php index 6d2809d8f..9ff036bbf 100644 --- a/modules/ppcp-button/services.php +++ b/modules/ppcp-button/services.php @@ -51,7 +51,7 @@ return array( * * @var State $state */ - if ( $state->current_state() < State::STATE_PROGRESSIVE ) { + if ( $state->current_state() <= State::STATE_PROGRESSIVE ) { return new DisabledSmartButton(); } $settings = $container->get( 'wcgateway.settings' );