Skip to content

Commit

Permalink
Fix NPE for pathfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
dcaslin committed Oct 9, 2024
1 parent 3e133b0 commit 95e7a23
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "d2-checklist",
"version": "24.7.1",
"manifest": "228617.24.09.30.1730-2-bnet.57149a",
"version": "24.7.2",
"manifest": "228617.24.09.30.1730-2-bnet.57149b",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down
14 changes: 8 additions & 6 deletions src/app/service/parse.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2321,14 +2321,16 @@ export class ParseService {
}
}
const ritualPathFinderRoot: TriumphPresentationNode = await this.handleRecPresNode([], 622609416 + '', nodes, records, triumphLeaves, true, false);
const visiblePathfinder = ritualPathFinderRoot.children.find(x => this.getBestPres(nodes, x.hash)?.state == 0 );
if (visiblePathfinder) {
const finalStep = visiblePathfinder.children.find(x => x.name == 'Path Completion Reward');
if (finalStep) {
weeklyRitualPathfinderHash = finalStep.hash;
if (ritualPathFinderRoot) {
const visiblePathfinder = ritualPathFinderRoot.children.find(x => this.getBestPres(nodes, x.hash)?.state == 0 );
if (visiblePathfinder) {
const finalStep = visiblePathfinder.children.find(x => x.name == 'Path Completion Reward');
if (finalStep) {
weeklyRitualPathfinderHash = finalStep.hash;
}
}
}

// TODO this is kinda ghetto stringing together active triumphs, exotic catalysts, medals and lore
// later on should split out active and legacy triumphs, and put catalysts, medals and lore into their own sections
// Tree 1024788583
Expand Down

0 comments on commit 95e7a23

Please sign in to comment.