mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 22:44:29 +01:00
Remove error in console logs on checkout page
This commit is contained in:
@@ -173,7 +173,7 @@
|
|||||||
data: {
|
data: {
|
||||||
srvModel: srvModel,
|
srvModel: srvModel,
|
||||||
lndModel: null,
|
lndModel: null,
|
||||||
scanDisplayQr: "",
|
scanDisplayQr: srvModel.invoiceBitcoinUrlQR,
|
||||||
expiringSoon: false,
|
expiringSoon: false,
|
||||||
isModal: srvModel.isModal,
|
isModal: srvModel.isModal,
|
||||||
selectedThirdPartyProcessor: ""
|
selectedThirdPartyProcessor: ""
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ function changeCurrency(currency) {
|
|||||||
if (currency !== null && srvModel.paymentMethodId !== currency) {
|
if (currency !== null && srvModel.paymentMethodId !== currency) {
|
||||||
$(".payment__currencies").hide();
|
$(".payment__currencies").hide();
|
||||||
$(".payment__spinner").show();
|
$(".payment__spinner").show();
|
||||||
checkoutCtrl.scanDisplayQr = "";
|
checkoutCtrl.scanDisplayQr = ".";
|
||||||
srvModel.paymentMethodId = currency;
|
srvModel.paymentMethodId = currency;
|
||||||
fetchStatus();
|
fetchStatus();
|
||||||
}
|
}
|
||||||
@@ -68,8 +68,7 @@ function onDataCallback(jsonData) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// restoring qr code view only when currency is switched
|
// restoring qr code view only when currency is switched
|
||||||
if (jsonData.paymentMethodId === srvModel.paymentMethodId &&
|
if (jsonData.paymentMethodId === srvModel.paymentMethodId) {
|
||||||
checkoutCtrl.scanDisplayQr === "") {
|
|
||||||
checkoutCtrl.scanDisplayQr = jsonData.invoiceBitcoinUrlQR;
|
checkoutCtrl.scanDisplayQr = jsonData.invoiceBitcoinUrlQR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user