hide dcc fields if the fields should not be rendered

This commit is contained in:
David Remer 2020-07-10 11:11:13 +03:00
parent ed93a97118
commit fb605ab9dc

View file

@ -10,6 +10,7 @@ class SingleProductBootstap {
init() {
if (!this.shouldRender()) {
this.renderer.hideButtons(this.gateway.hosted_fields.wrapper);
return;
}
@ -25,7 +26,6 @@ class SingleProductBootstap {
}
render() {
console.log(this);
const actionHandler = new SingleProductActionHandler(
this.gateway,
new UpdateCart(