mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
Always include messages component in editor
ajax request determines context incorrectly
This commit is contained in:
parent
6dd3d47649
commit
7203cd0138
1 changed files with 1 additions and 1 deletions
|
@ -51,10 +51,10 @@ export default function Edit( { attributes, clientId, setAttributes } ) {
|
||||||
scriptParams = {
|
scriptParams = {
|
||||||
url_params: {
|
url_params: {
|
||||||
clientId: 'test',
|
clientId: 'test',
|
||||||
components: 'messages,buttons,funding-eligibility',
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
scriptParams.url_params.components = 'messages,buttons,funding-eligibility';
|
||||||
|
|
||||||
if (!paypalScriptState) {
|
if (!paypalScriptState) {
|
||||||
loadPaypalScript(scriptParams, () => {
|
loadPaypalScript(scriptParams, () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue