Skip to content

Commit

Permalink
remove redundant wrapper for getting account default currency
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Karimov authored and Timur Karimov committed Mar 1, 2024
1 parent 4053d9d commit 249cc0d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -2573,15 +2573,6 @@ public function get_account_statement_descriptor_kana( string $empty_value = ''
return $empty_value;
}

/**
* Gets account default currency.
*
* @return string Currency code.
*/
public function get_account_default_currency(): string {
return $this->account->get_account_default_currency();
}

/**
* Gets connected account business name.
*
Expand Down Expand Up @@ -2771,7 +2762,7 @@ public function get_account_domestic_currency(): string {
$merchant_country
)
);
return $this->get_account_default_currency();
return $this->account->get_account_default_currency();
}

return $country_locale_data['currency_code'];
Expand Down

0 comments on commit 249cc0d

Please sign in to comment.