Bugfixing race condition for QR code switch (#335)

Ref: #334
This commit is contained in:
Rockstar Developer
2018-10-16 21:49:30 -05:00
committed by Nicolas Dorier
parent d7785fe2d2
commit 84018a5caa

View File

@@ -72,6 +72,11 @@ function onDataCallback(jsonData) {
}
// restoring qr code view only when currency is switched
if (jsonData.paymentMethodId === srvModel.paymentMethodId &&
checkoutCtrl.scanDisplayQr === "") {
checkoutCtrl.scanDisplayQr = jsonData.invoiceBitcoinUrlQR;
}
if (jsonData.paymentMethodId === srvModel.paymentMethodId) {
$(".payment__currencies").show();
$(".payment__spinner").hide();