diff --git a/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side b/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side new file mode 100644 index 00000000000..9929272e4d7 --- /dev/null +++ b/changelog/WOOPMNT-5528-remove-the-feature-isaccountdetailsenabled-flag-on-the-client-side @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Open up new Account Details in the Overview page by enabling the feature flag by default diff --git a/includes/class-wc-payments-features.php b/includes/class-wc-payments-features.php index ef950f16e3c..80de5bde43a 100644 --- a/includes/class-wc-payments-features.php +++ b/includes/class-wc-payments-features.php @@ -360,7 +360,7 @@ public static function is_dynamic_checkout_place_order_button_enabled(): bool { * @return bool */ public static function is_account_details_enabled(): bool { - return '1' === get_option( self::ACCOUNT_DETAILS_FLAG_NAME, '0' ); + return '1' === get_option( self::ACCOUNT_DETAILS_FLAG_NAME, '1' ); } /** diff --git a/tests/unit/test-class-wc-payments-features.php b/tests/unit/test-class-wc-payments-features.php index a719cff4aa6..65b867fb93c 100644 --- a/tests/unit/test-class-wc-payments-features.php +++ b/tests/unit/test-class-wc-payments-features.php @@ -26,7 +26,8 @@ class WC_Payments_Features_Test extends WCPAY_UnitTestCase { private $mock_wcpay_account; const FLAG_OPTION_NAME_TO_FRONTEND_KEY_MAPPING = [ - '_wcpay_feature_customer_multi_currency' => 'multiCurrency', + '_wcpay_feature_customer_multi_currency' => 'multiCurrency', + WC_Payments_Features::ACCOUNT_DETAILS_FLAG_NAME => 'isAccountDetailsEnabled', ]; public function set_up() {