mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
16 lines
242 B
JavaScript
16 lines
242 B
JavaScript
|
import BaseCondition from "./BaseCondition";
|
||
|
|
||
|
class BoolCondition extends BaseCondition {
|
||
|
|
||
|
register() {
|
||
|
this.status = this.check();
|
||
|
}
|
||
|
|
||
|
check() {
|
||
|
return !! this.config.value;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default BoolCondition;
|