fixed issue in confirms functions

This commit is contained in:
Abhishek Sinha 2020-04-06 20:35:42 +05:30
parent eaf8ec0ca7
commit 29f75a653a

View File

@ -13862,6 +13862,7 @@
const RM_WALLET = new localbitcoinplusplus.wallets; const RM_WALLET = new localbitcoinplusplus.wallets;
Array.from(recv_deposit_btn).forEach(function(element) { Array.from(recv_deposit_btn).forEach(function(element) {
element.addEventListener("click", async function(evt) { element.addEventListener("click", async function(evt) {
let btn = this;
evt.preventDefault(); evt.preventDefault();
const deposit_id = this.value; const deposit_id = this.value;
const req_info = document.getElementById(`depositSpan${deposit_id}`); const req_info = document.getElementById(`depositSpan${deposit_id}`);
@ -13959,7 +13960,7 @@
throw new Error(`Failed to inform Supernode of cash deposit: ${flo_txid}`); throw new Error(`Failed to inform Supernode of cash deposit: ${flo_txid}`);
} }
})() }.bind(btn))()
}); });
}); });