From 552f9add700554a480d58469524245f4ce426d4c Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Mon, 22 Aug 2022 17:23:59 -0700 Subject: [PATCH] Reduce min time on contract graph to 1h Allows more resolution on real-time markets, where a lot of trading happens within minutes --- web/components/contract/contract-prob-graph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/contract/contract-prob-graph.tsx b/web/components/contract/contract-prob-graph.tsx index 98440ec8..693befbb 100644 --- a/web/components/contract/contract-prob-graph.tsx +++ b/web/components/contract/contract-prob-graph.tsx @@ -58,7 +58,7 @@ export const ContractProbGraph = memo(function ContractProbGraph(props: { const { width } = useWindowSize() const numXTickValues = !width || width < 800 ? 2 : 5 - const hoursAgo = latestTime.subtract(5, 'hours') + const hoursAgo = latestTime.subtract(1, 'hours') const startDate = dayjs(times[0]).isBefore(hoursAgo) ? times[0] : hoursAgo.toDate()