Commit 52128a2d authored by Justin Domingue's avatar Justin Domingue Committed by GitHub

chore: reset local tick data state on input change (#3176)

parent c9642c6c
......@@ -117,6 +117,11 @@ function useTicksFromTickLens(
[callStates]
)
// reset on input change
useEffect(() => {
setTickDataLatestSynced([])
}, [currencyA, currencyB, feeAmount])
// return the latest synced tickData even if we are still loading the newest data
useEffect(() => {
if (!IsSyncing && !isLoading && !isError && isValid) {
......
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