Catch the bounced query

This commit is contained in:
Ian Philips 2022-07-07 09:59:51 -06:00
parent c387dc2cb1
commit 8be20a753a

View File

@ -16,11 +16,11 @@ export default function NotificationsIcon(props: { className?: string }) {
useEffect(() => {
if (user) {
const bonusChecker = setInterval(() => {
requestBonuses({})
requestBonuses({}).catch(console.log)
return () => {
clearInterval(bonusChecker)
}
}, 1000 * 60)
}, 1000 * 65)
}
}, [user])