From 3cd37682d396e61d75dfd7c7a6d2ced9c06d0954 Mon Sep 17 00:00:00 2001 From: Amit Singh Date: Thu, 2 May 2019 17:32:01 +0530 Subject: [PATCH] [BUG FIX]: Coinswitch exchange with altcoins popup not showing bug fix (#804) --- BTCPayServer/wwwroot/checkout/coinswitch.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/wwwroot/checkout/coinswitch.html b/BTCPayServer/wwwroot/checkout/coinswitch.html index 899405a48..448e4007c 100644 --- a/BTCPayServer/wwwroot/checkout/coinswitch.html +++ b/BTCPayServer/wwwroot/checkout/coinswitch.html @@ -39,7 +39,10 @@ to_amount: parseFloat(toCurrencyDue), state: orderId }; - waitForCoinSwitch(); + + payment.on('Exchange:Ready', function(){ + waitForCoinSwitch(); + }) function waitForCoinSwitch() { if (typeof payment.open !== "function") {