Skip to content

Commit

Permalink
🐛 Fix missing achievement (#1032)
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar authored Nov 15, 2024
1 parent adf1c65 commit 4531c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/profile/src/components/achievements/trophies.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function Group({

useEffect(() => {
// Set the page to the first uncompleted achievement or 0 if there are none
const filtereds = items.filter((a) => !a.hidden);
const filtereds = items.filter((a) => !a.hidden || a.completed);
// Get the unique list of indexes for the achievements in this group
const pages =
filtereds.length > 0 ? [...new Set(filtereds.map((a) => a.index))] : [0];
Expand Down

0 comments on commit 4531c83

Please sign in to comment.