Reworking condition to allow reminder badge with corret list for all experiment states and control

This commit is contained in:
Joel T 2022-04-27 13:20:26 -07:00
parent 46d6e6dd3e
commit 29e521dca0
1 changed files with 2 additions and 6 deletions

View File

@ -469,15 +469,11 @@ class TaskLists {
*/ */
public static function setup_tasks_remaining () { 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; $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' );
if( is_null( $active_list ) ) {
return;
}
$setup_list = self::get_list( $active_list ); $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; return;
} }