Skip to content

Commit

Permalink
Payment: do not display as failed if preimage exists
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloudis committed Aug 1, 2024
1 parent 744cb2c commit 0108944
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/Payment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ export default class Payment extends BaseModel {
}

@computed public get isFailed(): boolean {
if (!this.isIncomplete) return false;
let isFailed = false;
if (this.htlcs) {
for (const htlc of this.htlcs) {
Expand Down

0 comments on commit 0108944

Please sign in to comment.