♻️ Refactor conditions inside services.php

This commit is contained in:
Philipp Stracker 2025-02-17 16:42:22 +01:00
parent 22ddf2597f
commit 7d2b0694d9
No known key found for this signature in database
4 changed files with 12 additions and 13 deletions

View file

@ -125,8 +125,8 @@ return array(
}
}
$state = $container->get( 'onboarding.state' );
if ( $state->current_state() !== State::STATE_ONBOARDED ) {
$is_connected = $container->get( 'settings.flag.is-connected' );
if ( ! $is_connected ) {
return new DisabledSmartButton();
}