mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
🐛 Fix incorrect validation rule
This commit is contained in:
parent
f41fa4f951
commit
e95321cf82
3 changed files with 3 additions and 2 deletions
|
@ -218,7 +218,7 @@ class GooglepayButton extends PaymentButton {
|
|||
registerValidationRules( invalidIf, validIf ) {
|
||||
invalidIf(
|
||||
() =>
|
||||
[ 'TEST', 'PRODUCTION' ].includes(
|
||||
! [ 'TEST', 'PRODUCTION' ].includes(
|
||||
this.buttonConfig.environment
|
||||
),
|
||||
`Invalid environment: ${ this.buttonConfig.environment }`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue