Skip to content

Commit

Permalink
fix null possiblity on unlocks
Browse files Browse the repository at this point in the history
  • Loading branch information
GitPaulo committed Nov 16, 2024
1 parent 7a0ea98 commit 5364445
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
? quest.Description.toLowerCase().includes(trimmedQuery)
: false;
const unlockMatches = quest.Unlocks.some((unlock) =>
unlock.Name.toLowerCase().includes(trimmedQuery)
unlock?.Name?.toLowerCase()?.includes(trimmedQuery)
);
return nameMatches || descriptionMatches || unlockMatches;
Expand Down

0 comments on commit 5364445

Please sign in to comment.