mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Do not display smart buttons if current states is not onboarded
This commit is contained in:
parent
145b8085ab
commit
e25737f480
1 changed files with 1 additions and 1 deletions
|
@ -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' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue