From a2d17bfa7e4ab031adb65c8dab385a0e28898705 Mon Sep 17 00:00:00 2001 From: rockstardev Date: Tue, 17 Jul 2018 22:30:02 -0500 Subject: [PATCH] Closing currency selection dialog once invoice expired or paid --- BTCPayServer/wwwroot/checkout/js/core.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/wwwroot/checkout/js/core.js b/BTCPayServer/wwwroot/checkout/js/core.js index 1e5f2d225..2e327bbe4 100644 --- a/BTCPayServer/wwwroot/checkout/js/core.js +++ b/BTCPayServer/wwwroot/checkout/js/core.js @@ -16,6 +16,8 @@ function resetTabsSlider() { $("#altcoins").hide(); $("#altcoins").removeClass("active"); + + closePaymentMethodDialog(null); } function onDataCallback(jsonData) { @@ -69,7 +71,7 @@ function onDataCallback(jsonData) { } function changeCurrency(currency) { - if (srvModel.paymentMethodId !== currency) { + if (currency !== null && srvModel.paymentMethodId !== currency) { $(".payment__currencies").hide(); $(".payment__spinner").show(); srvModel.paymentMethodId = currency;