Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Open up new Account Details in the Overview page by enabling the feature flag by default
2 changes: 1 addition & 1 deletion includes/class-wc-payments-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' );
}

/**
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/test-class-wc-payments-features.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
Loading