mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
13 lines
216 B
JavaScript
13 lines
216 B
JavaScript
import BaseCondition from './BaseCondition';
|
|
|
|
class BoolCondition extends BaseCondition {
|
|
register() {
|
|
this.status = this.check();
|
|
}
|
|
|
|
check() {
|
|
return !! this.config.value;
|
|
}
|
|
}
|
|
|
|
export default BoolCondition;
|