Reduce min time on contract graph to 1h

Allows more resolution on real-time markets, where a lot of trading happens within minutes
This commit is contained in:
Austin Chen 2022-08-22 17:23:59 -07:00
parent 3bea983662
commit 552f9add70

View File

@ -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()