Check active plugins before getting the PayPal onboarding status (https://github.com/woocommerce/woocommerce-admin/pull/6625)

* Check active plugins before get paypal onboarding status

* Add changelog and testing instructions

Co-authored-by: Bec Scott <me@becdetat.com>
This commit is contained in:
Hsing-yu Flowers 2021-03-30 02:02:19 -04:00 committed by GitHub
parent e2043f9875
commit 4cbbd920cc
3 changed files with 14 additions and 1 deletions

View File

@ -2,6 +2,13 @@
## Unreleased
### Check active plugins before getting the PayPal onboarding status #6625
- Go to the WooCommerce home page
- Open your browser console
- Choose payment methods
- See no error message
## 2.2.0
### Fixed event tracking for merchant email notes #6616

View File

@ -426,7 +426,12 @@ export default compose(
const countryCode = getCountryCode(
generalSettings.woocommerce_default_country
);
const paypalOnboardingStatus = getPaypalOnboardingStatus();
const paypalOnboardingStatus = activePlugins.includes(
'woocommerce-paypal-payments'
)
? getPaypalOnboardingStatus()
: null;
const methods = getPaymentMethods( {
activePlugins,

View File

@ -77,6 +77,7 @@ Release and roadmap notes are available on the [WooCommerce Developers Blog](htt
- Tweak: Add check to see if value for contains is array, show warning if not. #6645
- Fix: Event tracking for merchant email notes #6616
- Fix: Check active plugins before getting the PayPal onboarding status #6625
== 2.2.0 3/26/2021 ==