bitcoin methods tidy up

This commit is contained in:
counterweight 2025-04-05 13:23:38 +02:00
parent f846a7b06c
commit d49ea51720
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
2 changed files with 1 additions and 6 deletions

View file

@ -34,15 +34,12 @@ class BitcoinMethodCheckboxes {
this.parentElement.appendChild(this.lightningContainer);
}
buildCheckbox({ id, label }) {
buildCheckbox({ label }) {
const checkboxContainer = document.createElement('div');
checkboxContainer.className = 'checkbox-row';
checkboxContainer.id = `${id}-checkbox-area`;
const checkbox = document.createElement('input');
checkbox.type = 'checkbox';
checkbox.name = id;
checkbox.id = `${id}-checkbox`;
checkbox.checked = true;
const labelElement = document.createElement('label');
@ -60,7 +57,6 @@ class BitcoinMethodCheckboxes {
this.onchainCheckboxElement,
this.lightningCheckboxElement,
].filter((cb) => cb.checked).length;
console.log(checkedCount);
if (checkedCount === 0) {
clickedCheckbox.checked = true;
}

View file

@ -171,7 +171,6 @@ class CreateOfferModal {
onClickCallback: async () => {
await this.createOffer();
await this.onCreationCallback();
await this.toggleOfferCreatedAlert();
},
});
this.publishOfferButton.render();