Skip to content

Commit

Permalink
🐛 Add missing useEffect dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
bal7hazar committed Dec 17, 2024
1 parent f3fb2c7 commit dae5fd5
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 @@ -121,7 +121,7 @@ function Group({
setPages(pages);
const page = filtereds.find((a) => !a.completed);
setPage(page ? page.index : pages[pages.length - 1]);
}, []);
}, [items]);

const handleNext = useCallback(() => {
const index = pages.indexOf(page);
Expand Down

0 comments on commit dae5fd5

Please sign in to comment.