fix: update safety check cache time (#7005)

This commit is contained in:
Jordan Frankfurt 2023-07-26 10:14:54 -05:00 committed by GitHub
parent 6c5c1c0032
commit 4b39dfbd69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,8 +35,7 @@ export default function useAccountRiskCheck(account: string | null | undefined)
.catch(() => dispatch(setOpenModal(null))) .catch(() => dispatch(setOpenModal(null)))
} }
} finally { } finally {
// leaving this code in place w/ a negligible cache time in case we want to increase cache time later localStorage.setItem(riskCheckLocalStorageKey, (now + ms`1 day`).toString())
localStorage.setItem(riskCheckLocalStorageKey, (now + ms`10 seconds`).toString())
} }
} }
}, [account, dispatch]) }, [account, dispatch])