Skip to content

Commit

Permalink
fix(client-electron): filter analyze results by daemons from resolved…
Browse files Browse the repository at this point in the history
… sequence
  • Loading branch information
marcincichocki committed Oct 10, 2022
1 parent c5266e2 commit 70b501e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/electron/renderer/pages/SelectSequence.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const SelectSequence = () => {
<span key={i}>{s}</span>
))}
<Spacer />
{r.sequence.parts.length}/{daemons.length}
{r.resolvedSequence.parts.length}/{daemons.length}
</Sequence>
))}
</SequenceList>
Expand Down
2 changes: 1 addition & 1 deletion src/electron/worker/autosolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class BreachProtocolAutosolver {
.filter(Boolean)
.map((r) => r.toJSON())
// This filter does not guarantee that shortest sequence will be preserved.
.filter(uniqueWith((r) => r.sequence.parts.sort().join('')))
.filter(uniqueWith((r) => r.resolvedSequence.parts.sort().join('')))
: [];
}

Expand Down

0 comments on commit 70b501e

Please sign in to comment.