Skip to content

Commit

Permalink
Merge pull request #2583 from myxmaster/fix-invoice-keysend-htlc-arra…
Browse files Browse the repository at this point in the history
…y-check

Invoice model: Better htlc array check for keysend message
  • Loading branch information
kaloudis authored Nov 29, 2024
2 parents 98d35be + a395bf7 commit 626bcd3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/Invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ export default class Invoice extends BaseModel {

@computed public get getKeysendMessage(): string {
if (
this.htlcs &&
this.htlcs[0] &&
this.htlcs?.length > 0 &&
this.htlcs[0].custom_records &&
this.htlcs[0].custom_records[keySendMessageType]
) {
Expand Down

0 comments on commit 626bcd3

Please sign in to comment.