mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
15 lines
242 B
JavaScript
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;
|