Skip to content

Commit

Permalink
Merge pull request #10 from gjmwolmarans/syncfusion
Browse files Browse the repository at this point in the history
Refine filtering logic for resource tag summation
  • Loading branch information
gjmwolmarans authored Aug 31, 2024
2 parents 4cd1421 + bed7d7a commit 097c649
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions me/Pages/AboutMe.razor
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
var highlightedTags = Data.Tags.Where(t => t.IsHighlighted);
return highlightedTags.Any() || selectedResourceTypes.Any()
? FilteredResources
.Where(r => !selectedResourceTypes.Any() || r.Type.IsSelected)
.SelectMany(r => r.ResourceTags)
.Where(rt => highlightedTags.Contains(rt.Tag))
.Where(rt => (!highlightedTags.Any() || highlightedTags.Contains(rt.Tag))
|| (!selectedResourceTypes.Any() || selectedResourceTypes.Contains(rt.Resource.TypeId)))
.Sum(t => t.WeightedExperience)
: _totalXP;
}
Expand Down

0 comments on commit 097c649

Please sign in to comment.