mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
hide dcc fields if the fields should not be rendered
This commit is contained in:
parent
ed93a97118
commit
fb605ab9dc
1 changed files with 1 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue