diff --git a/changelog/as-fix-ece-with-woopay b/changelog/as-fix-ece-with-woopay new file mode 100644 index 00000000000..5bf422d22ea --- /dev/null +++ b/changelog/as-fix-ece-with-woopay @@ -0,0 +1,4 @@ +Significance: minor +Type: add + +Fix ECE not working without WooPay. diff --git a/client/express-checkout/blocks/components/express-checkout-container.js b/client/express-checkout/blocks/components/express-checkout-container.js index e25960c03cd..9285227bf63 100644 --- a/client/express-checkout/blocks/components/express-checkout-container.js +++ b/client/express-checkout/blocks/components/express-checkout-container.js @@ -19,9 +19,11 @@ const ExpressCheckoutContainer = ( props ) => { }; return ( - - - +
+ + + +
); }; diff --git a/client/express-checkout/blocks/index.js b/client/express-checkout/blocks/index.js index c7aac8d9b5c..79e54d80a0b 100644 --- a/client/express-checkout/blocks/index.js +++ b/client/express-checkout/blocks/index.js @@ -1,5 +1,3 @@ -/* global wcpayConfig, wcpayExpressCheckoutParams */ - /** * Internal dependencies */ @@ -26,11 +24,7 @@ const expressCheckoutElementPaymentMethod = ( api ) => ( { return false; } - if ( typeof wcpayConfig !== 'undefined' ) { - return wcpayConfig.isExpressCheckoutElementEnabled; - } - - return false; + return true; }, } );