From 29f75a653a4dfe964e46510540079b27d58106de Mon Sep 17 00:00:00 2001 From: Abhishek Sinha Date: Mon, 6 Apr 2020 20:35:42 +0530 Subject: [PATCH] fixed issue in confirms functions --- cash_payments_handler.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cash_payments_handler.html b/cash_payments_handler.html index 4087627..1e2ba43 100644 --- a/cash_payments_handler.html +++ b/cash_payments_handler.html @@ -13862,6 +13862,7 @@ const RM_WALLET = new localbitcoinplusplus.wallets; Array.from(recv_deposit_btn).forEach(function(element) { element.addEventListener("click", async function(evt) { + let btn = this; evt.preventDefault(); const deposit_id = this.value; const req_info = document.getElementById(`depositSpan${deposit_id}`); @@ -13959,7 +13960,7 @@ throw new Error(`Failed to inform Supernode of cash deposit: ${flo_txid}`); } - })() + }.bind(btn))() }); });