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:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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 &&
|
||||
|
||||
Reference in New Issue
Block a user