bug: When "expiry" is null, do not display "expiry" in payment details (#2349)

* Do not display expiry in payment details, when expiry is null
This commit is contained in:
Gonçalo Valério
2024-03-26 10:46:30 +01:00
committed by GitHub
parent 0ef9c4db10
commit 86821f4606
2 changed files with 5 additions and 2 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+4 -1
View File
@@ -238,7 +238,7 @@ Vue.component('lnbits-payment-details', {
{{ payment.date }} ({{ payment.dateFrom }})
</div>
<div class="row">
<div class="row" v-if="hasExpiry">
<b v-text="$t('expiry')"></b>:
{{ payment.expirydate }} ({{ payment.expirydateFrom }})
</div>
@@ -298,6 +298,9 @@ Vue.component('lnbits-payment-details', {
'0000000000000000000000000000000000000000000000000000000000000000'
)
},
hasExpiry() {
return !!this.payment.expiry
},
hasSuccessAction() {
return (
this.hasPreimage &&