|
|
@ -90,12 +90,16 @@ export default function FlightContainer() { |
|
|
|
const base = Math.pow(10, exponent); |
|
|
|
const base = Math.pow(10, exponent); |
|
|
|
let stepSize; |
|
|
|
let stepSize; |
|
|
|
|
|
|
|
|
|
|
|
if (max / base > 5) { |
|
|
|
if (searchType.category === 'TIME') { |
|
|
|
stepSize = base; |
|
|
|
stepSize = 3600; |
|
|
|
} else if (max / (base / 2) > 5) { |
|
|
|
|
|
|
|
stepSize = base / 2; |
|
|
|
|
|
|
|
} else { |
|
|
|
} 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; |
|
|
|
return stepSize; |
|
|
|