mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-20 13:34:37 +01:00
Revert "Remove error in console logs on checkout page"
This reverts commit 08dd94e267
.
This commit is contained in:
parent
08dd94e267
commit
c0e28ce66e
2 changed files with 4 additions and 3 deletions
|
@ -173,7 +173,7 @@
|
|||
data: {
|
||||
srvModel: srvModel,
|
||||
lndModel: null,
|
||||
scanDisplayQr: srvModel.invoiceBitcoinUrlQR,
|
||||
scanDisplayQr: "",
|
||||
expiringSoon: false,
|
||||
isModal: srvModel.isModal,
|
||||
selectedThirdPartyProcessor: ""
|
||||
|
|
|
@ -24,7 +24,7 @@ function changeCurrency(currency) {
|
|||
if (currency !== null && srvModel.paymentMethodId !== currency) {
|
||||
$(".payment__currencies").hide();
|
||||
$(".payment__spinner").show();
|
||||
checkoutCtrl.scanDisplayQr = ".";
|
||||
checkoutCtrl.scanDisplayQr = "";
|
||||
srvModel.paymentMethodId = currency;
|
||||
fetchStatus();
|
||||
}
|
||||
|
@ -68,7 +68,8 @@ function onDataCallback(jsonData) {
|
|||
}
|
||||
|
||||
// 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue