We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24ffea5 commit a222fb6Copy full SHA for a222fb6
changelog/fix-woopay-params-undefined
@@ -0,0 +1,4 @@
1
+Significance: patch
2
+Type: fix
3
+
4
+Fix an undefined variable bug in WooPay Express Checkout.
client/checkout/platform-checkout/express-button/utils.js
@@ -4,8 +4,12 @@
* Retrieves a configuration value.
5
*
6
* @param {string} name The name of the config parameter.
7
- * @return {*} The value of the parameter of null.
+ * @return {*} The value of the parameter or undefined.
8
*/
9
export const getWooPayExpressData = ( name ) => {
10
+ if ( 'undefined' === typeof wcpayWooPayExpressParams ) {
11
+ return undefined;
12
+ }
13
14
return wcpayWooPayExpressParams?.[ name ];
15
};
0 commit comments