We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e543bec commit 477f69fCopy full SHA for 477f69f
addons/website_payment/static/src/snippets/s_donation/donation_snippet.js
@@ -44,6 +44,8 @@ export class DonationSnippet extends Interaction {
44
start() {
45
const prefilledButtonEls = this.el.querySelectorAll(".s_donation_btn, .s_range_bubble");
46
for (const prefilledButtonEl of prefilledButtonEls) {
47
+ // Remove existing currency
48
+ prefilledButtonEl.querySelector(".s_donation_currency")?.remove();
49
const insertBefore = this.currency.position === "before";
50
const currencyEl = document.createElement("span");
51
currencyEl.innerText = this.currency.symbol;
0 commit comments