woocommerce-paypal-payments/modules/ppcp-wc-gateway/resources/js/common/display-manager/condition/BoolCondition.js

15 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;