Commit 134fa96d authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

feat(risk): tune down cache (#4208)

* tune down cache from 7 days to 12 hours

* minimal cache time
parent c6e677d8
...@@ -35,7 +35,8 @@ export default function useAccountRiskCheck(account: string | null | undefined) ...@@ -35,7 +35,8 @@ export default function useAccountRiskCheck(account: string | null | undefined)
.catch(() => dispatch(setOpenModal(null))) .catch(() => dispatch(setOpenModal(null)))
} }
} finally { } finally {
localStorage.setItem(riskCheckLocalStorageKey, (now + ms`7 days`).toString()) // leaving this code in place w/ a negligible cache time in case we want to increase cache time later
localStorage.setItem(riskCheckLocalStorageKey, (now + ms`10 seconds`).toString())
} }
} }
}, [account, dispatch]) }, [account, dispatch])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment