Skip to content

Commit

Permalink
PSPAYPAL-815 remove bug in installment banner template
Browse files Browse the repository at this point in the history
  • Loading branch information
René Gust committed Dec 12, 2024
1 parent e704043 commit 5d7c8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/twig/frontend/installment_banners.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
ratio: '{{ size }}'
}
}).render('#paypal-installment-banner-container').then(function () {
if (addClass) {
if (addClass && referenceNode) {
document.getElementById("paypal-installment-banner-container").classList.add(addClass);
}
});
Expand Down

0 comments on commit 5d7c8da

Please sign in to comment.