diff --git a/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php b/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php index 09c13a07f87..3eeca7dc992 100644 --- a/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php +++ b/plugins/woocommerce/src/Admin/Features/OnboardingTasks/TaskLists.php @@ -469,15 +469,11 @@ class TaskLists { */ public static function setup_tasks_remaining () { - $active_list = self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_1' ) ? 'setup_experiment_1' : self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_2' ) ? 'setup_experiment_1' : null; - - if( is_null( $active_list ) ) { - return; - } + $active_list = self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_1' ) ? 'setup_experiment_1' : ( self::is_experiment_treatment( 'woocommerce_tasklist_setup_experiment_2' ) ? 'setup_experiment_2' : 'setup' ); $setup_list = self::get_list( $active_list ); - if( $setup_list->is_hidden() || $setup_list->is_complete() ) { + if( ! $setup_list || $setup_list->is_hidden() || $setup_list->is_complete() ) { return; }