Skip to content

Commit

Permalink
fix: isLocal now correct
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Aug 6, 2022
1 parent 1ed1061 commit a10d6ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/buildAxis.linear.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ function buildTimeAxis<TDatum>(
range: [number, number],
outerRange: [number, number]
): AxisTime<TDatum> {
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

Expand Down

0 comments on commit a10d6ce

Please sign in to comment.