Skip to content

Commit

Permalink
TimeScaleUnit fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuznietsov committed Aug 23, 2022
1 parent 00dc472 commit b146838
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getPercentileRankSeries = (
type TimeScaleValue = `1${TimeScaleUnit}`;

const isTimeScaleValue = (unit: string): unit is TimeScaleValue => {
const supportedTimeScales: TimeScaleValue[] = ['1ms', '1s', '1m', '1h', '1d'];
const supportedTimeScales: TimeScaleValue[] = ['1s', '1m', '1h', '1d'];
return supportedTimeScales.includes(unit as TimeScaleValue);
};

Expand Down

0 comments on commit b146838

Please sign in to comment.