fix: update safety check cache time (#7005)
This commit is contained in:
parent
6c5c1c0032
commit
4b39dfbd69
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user