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:
parent
3bea983662
commit
552f9add70
|
@ -58,7 +58,7 @@ export const ContractProbGraph = memo(function ContractProbGraph(props: {
|
||||||
const { width } = useWindowSize()
|
const { width } = useWindowSize()
|
||||||
|
|
||||||
const numXTickValues = !width || width < 800 ? 2 : 5
|
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)
|
const startDate = dayjs(times[0]).isBefore(hoursAgo)
|
||||||
? times[0]
|
? times[0]
|
||||||
: hoursAgo.toDate()
|
: hoursAgo.toDate()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user