mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🔥 Remove incorrect validation rule
This commit is contained in:
parent
90542293d8
commit
d1607e3ebc
1 changed files with 0 additions and 8 deletions
|
@ -193,14 +193,6 @@ class ApplePayButton extends PaymentButton {
|
|||
* @inheritDoc
|
||||
*/
|
||||
registerValidationRules( invalidIf, validIf ) {
|
||||
invalidIf(
|
||||
() =>
|
||||
! [ 'TEST', 'PRODUCTION' ].includes(
|
||||
this.buttonConfig.environment
|
||||
),
|
||||
`Invalid environment: ${ this.buttonConfig.environment }`
|
||||
);
|
||||
|
||||
validIf( () => this.isPreview );
|
||||
|
||||
invalidIf(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue