Skip to content

Commit a06a4e4

Browse files
committed
Bug fixed on resolutionStatement
1 parent c34cdcd commit a06a4e4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/model/receipt/ResolutionStatement.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,7 @@ export class ResolutionStatement {
115115
}
116116

117117
// When transaction index matches a primary id, get the most recent secondaryId
118-
const resolvedSecondaryId = Math.max(...this.resolutionEntries
119-
.map((entry) => secondaryId >= entry.source.secondaryId ? entry.source.secondaryId : 0));
118+
const resolvedSecondaryId = this.getMaxSecondaryIdByPrimaryId(resolvedPrimaryId);
120119

121120
if (resolvedSecondaryId === 0 && secondaryId !== resolvedSecondaryId) {
122121
/*

0 commit comments

Comments
 (0)