diff --git a/lnbits/extensions/tpos/templates/tpos/index.html b/lnbits/extensions/tpos/templates/tpos/index.html index edbb2aa8..3c4fa24f 100644 --- a/lnbits/extensions/tpos/templates/tpos/index.html +++ b/lnbits/extensions/tpos/templates/tpos/index.html @@ -138,8 +138,9 @@ hide-dropdown-icon input-debounce="0" new-value-mode="add-unique" - label="Tip % Options" - > + label="Tip % Options (hit enter to add values)" + >Hit enter to add values
@@ -294,6 +294,7 @@ exchangeRate: null, stack: [], tipAmount: 0.0, + hasNFC: false, nfcTagReading: false, invoiceDialog: { show: false, @@ -370,7 +371,7 @@ this.showInvoice() }, submitForm: function () { - if (this.tip_options.length) { + if (this.tip_options && this.tip_options.length) { this.showTipModal() } else { this.showInvoice() @@ -413,9 +414,6 @@ dialog.show = false self.complete.show = true - setTimeout(function () { - self.complete.show = false - }, 5000) } }) }, 3000)