fix: invoice can have undefined tag
This commit is contained in:
parent
527afa0c8c
commit
28c0947afb
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@
|
|||
)
|
||||
this.invoice = data.invoice
|
||||
const paymentHashTag = decode(data.invoice).data.tags.find(
|
||||
t => t.description === 'payment_hash'
|
||||
t => t && t.description === 'payment_hash'
|
||||
)
|
||||
if (paymentHashTag) {
|
||||
await this.waitForPaidInvoice(paymentHashTag.value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue