Apply services

This commit is contained in:
Narek Zakarian 2025-08-04 18:12:49 +04:00
parent cdf43b5023
commit f32c013677
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -2075,7 +2075,8 @@ return array(
'wcgateway.settings.wc-tasks.working-capital-config' => static function( ContainerInterface $container ): array {
$settings = $container->get( 'wcgateway.settings' );
$stay_updated = $settings->has( 'stay_updated' ) ? $settings->get( 'stay_updated' ) : false;
assert( $settings instanceof Settings );
$stay_updated = $settings->has( 'stay_updated' ) && $settings->get( 'stay_updated' );
if ( $container->get( 'api.shop.country' ) !== 'US' || ! $stay_updated ) {
return array();