Add hideBetsBefore to useEffect dependencies
This commit is contained in:
parent
73ee01cc46
commit
d665b95af3
|
@ -83,7 +83,7 @@ export function BetsList(props: { user: User; hideBetsBefore?: number }) {
|
|||
}
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [allBets])
|
||||
}, [allBets, hideBetsBefore])
|
||||
|
||||
const getTime = useTimeSinceFirstRender()
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user