Do not display smart buttons if current states is not onboarded

This commit is contained in:
dinamiko 2021-07-27 11:07:51 +02:00
parent 145b8085ab
commit e25737f480

View file

@ -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' );