Skip to content

Commit

Permalink
fix: only include player levels in encounter if they are a number
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed May 8, 2023
1 parent e739698 commit 3fb298f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encounter/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export class EncounterParser {
const playerLevels = players
.map((p) => this.plugin.getPlayerByName(p))
.map((p) => p.level)
.filter((p) => p);
.filter((p) => p && !isNaN(Number(p)));

return {
name,
Expand Down

0 comments on commit 3fb298f

Please sign in to comment.