🐛 Fix incorrect validation rule

This commit is contained in:
Philipp Stracker 2024-10-09 14:04:21 +02:00
parent f41fa4f951
commit e95321cf82
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -220,7 +220,7 @@ class ApplePayButton extends PaymentButton {
registerValidationRules( invalidIf, validIf ) {
invalidIf(
() =>
[ 'TEST', 'PRODUCTION' ].includes(
! [ 'TEST', 'PRODUCTION' ].includes(
this.buttonConfig.environment
),
`Invalid environment: ${ this.buttonConfig.environment }`