Fix dependency of useEffect in BetsList

This commit is contained in:
Forrest Wolf 2022-05-31 22:10:59 -04:00
parent b236ebdbd9
commit 077b211f22

View File

@ -82,7 +82,7 @@ export function BetsList(props: { user: User; hideBetsBefore?: number }) {
disposed = true disposed = true
} }
} }
}, [allBets]) }, [bets])
const getTime = useTimeSinceFirstRender() const getTime = useTimeSinceFirstRender()
useEffect(() => { useEffect(() => {