Skip to content

Commit

Permalink
better htlc array check for keysend message
Browse files Browse the repository at this point in the history
  • Loading branch information
myxmaster committed Nov 27, 2024
1 parent d0d52f2 commit a395bf7
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 a395bf7

Please sign in to comment.