Remove error in console logs on checkout page

This commit is contained in:
nicolas.dorier 2019-03-10 00:18:34 +09:00
parent 7497865d1f
commit 08dd94e267
2 changed files with 3 additions and 4 deletions

View file

@ -173,7 +173,7 @@
data: {
srvModel: srvModel,
lndModel: null,
scanDisplayQr: "",
scanDisplayQr: srvModel.invoiceBitcoinUrlQR,
expiringSoon: false,
isModal: srvModel.isModal,
selectedThirdPartyProcessor: ""

View file

@ -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,8 +68,7 @@ function onDataCallback(jsonData) {
}
// restoring qr code view only when currency is switched
if (jsonData.paymentMethodId === srvModel.paymentMethodId &&
checkoutCtrl.scanDisplayQr === "") {
if (jsonData.paymentMethodId === srvModel.paymentMethodId) {
checkoutCtrl.scanDisplayQr = jsonData.invoiceBitcoinUrlQR;
}