Merge pull request #1264 from zedongh/develop

fix: GetMinMax with 'GLOBAL_TIME' and 'custom' need pass globalTime
This commit is contained in:
Palash 2022-06-23 15:44:36 +05:30 committed by GitHub
commit bdbcbb5f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,10 @@ function FullView({
time: timePreferenceType,
): { min: string | number; max: string | number } => {
if (time === 'GLOBAL_TIME') {
const minMax = GetMinMax(globalSelectedTime);
const minMax = GetMinMax(globalSelectedTime, [
minTime / 1000000,
maxTime / 1000000,
]);
return {
min: convertToNanoSecondsToSecond(minMax.minTime / 1000),
max: convertToNanoSecondsToSecond(minMax.maxTime / 1000),