mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix failed validation response
the 2nd check seems to not needed now
This commit is contained in:
parent
613665f43e
commit
18f8b83b61
1 changed files with 1 additions and 7 deletions
|
@ -148,7 +148,7 @@ const PayPalComponent = ({
|
|||
}
|
||||
if (wp.data.select('wc/store/validation').hasValidationErrors()) {
|
||||
location.href = getCheckoutRedirectUrl();
|
||||
return false;
|
||||
return { type: responseTypes.ERROR };
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -211,12 +211,6 @@ const PayPalComponent = ({
|
|||
}
|
||||
|
||||
const unsubscribeProcessing = onPaymentSetup(() => {
|
||||
if (wp.data.select('wc/store/validation').hasValidationErrors()) {
|
||||
return {
|
||||
type: responseTypes.ERROR,
|
||||
};
|
||||
}
|
||||
|
||||
if (config.scriptData.continuation) {
|
||||
return {
|
||||
type: responseTypes.SUCCESS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue