Commit 4b39dfbd authored by Jordan Frankfurt's avatar Jordan Frankfurt Committed by GitHub

fix: update safety check cache time (#7005)

parent 6c5c1c00
......@@ -35,8 +35,7 @@ export default function useAccountRiskCheck(account: string | null | undefined)
.catch(() => dispatch(setOpenModal(null)))
}
} 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`10 seconds`).toString())
localStorage.setItem(riskCheckLocalStorageKey, (now + ms`1 day`).toString())
}
}
}, [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