From a10d6cefbc32e12a411ed9f065e78c6c39df8433 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sat, 6 Aug 2022 15:31:53 -0600 Subject: [PATCH] fix: isLocal now correct --- src/utils/buildAxis.linear.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/buildAxis.linear.ts b/src/utils/buildAxis.linear.ts index 86b7f664..6becdf43 100644 --- a/src/utils/buildAxis.linear.ts +++ b/src/utils/buildAxis.linear.ts @@ -124,8 +124,8 @@ function buildTimeAxis( range: [number, number], outerRange: [number, number] ): AxisTime { - const isLocal = options.scaleType !== 'localTime' - const scaleFn = options.scaleType === 'localTime' ? scaleTime : scaleUtc + const isLocal = options.scaleType === 'localTime' + const scaleFn = isLocal ? scaleTime : scaleUtc let isInvalid = false