Skip to content

Commit

Permalink
do not output footer if no button is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
netzkollektiv committed Jul 11, 2024
1 parent 253adee commit ecb1cf0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ export class EasycreditExpressButton {
}

render () {
if (!this.isEnabled(METHODS.INSTALLMENT) && !this.isEnabled(METHODS.BILL)) {
return;
}
return [
<div class="ec-express-button">
{this.isEnabled(METHODS.INSTALLMENT) &&
Expand Down Expand Up @@ -234,4 +237,4 @@ export class EasycreditExpressButton {
</div>
]
}
}
}

0 comments on commit ecb1cf0

Please sign in to comment.