From dae5fd503b82e1aec4cf9fc71ddc3d199f36a77b Mon Sep 17 00:00:00 2001 From: bal7hazar Date: Tue, 17 Dec 2024 17:15:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Add=20missing=20useEffect=20depe?= =?UTF-8?q?ndency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/profile/src/components/achievements/trophies.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/profile/src/components/achievements/trophies.tsx b/packages/profile/src/components/achievements/trophies.tsx index fcde67c60..cc4849cd6 100644 --- a/packages/profile/src/components/achievements/trophies.tsx +++ b/packages/profile/src/components/achievements/trophies.tsx @@ -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);