diff --git a/src/containers/statistics/FlightContainer.js b/src/containers/statistics/FlightContainer.js index 1becdca..66fd92f 100644 --- a/src/containers/statistics/FlightContainer.js +++ b/src/containers/statistics/FlightContainer.js @@ -90,12 +90,16 @@ export default function FlightContainer() { const base = Math.pow(10, exponent); let stepSize; - if (max / base > 5) { - stepSize = base; - } else if (max / (base / 2) > 5) { - stepSize = base / 2; + if (searchType.category === 'TIME') { + stepSize = 3600; } else { - stepSize = base / 5; + if (max / base > 5) { + stepSize = base; + } else if (max / (base / 2) > 5) { + stepSize = base / 2; + } else { + stepSize = base / 5; + } } return stepSize;