Skip to content

Commit

Permalink
[pre-commit.ci lite] apply automatic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci-lite[bot] authored Feb 13, 2024
1 parent 02428bb commit 4bf1c2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ const unitLong: UnitsMap = {
h: UNITS.HOUR,
d: UNITS.DAY,
w: UNITS.WEEK,
y: UNITS.YEAR
y: UNITS.YEAR,
};
const unitShort: UnitsMap = {
[UNITS.MINUTE]: 'm',
[UNITS.HOUR]: 'h',
[UNITS.DAY]: 'd',
[UNITS.WEEK]: 'w',
[UNITS.YEAR]: 'y'
[UNITS.YEAR]: 'y',
};

const presetRanges = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ const getRelativeDateMs = (date: RelativeDate): number => {
return now - value * 24 * 60 * 60 * 1000;
case UNITS.WEEK:
return now - value * 7 * 24 * 60 * 60 * 1000;
case UNITS.YEAR :
case UNITS.YEAR:
return now - value * 365 * 24 * 60 * 60 * 1000;
default:
return now;
Expand Down

0 comments on commit 4bf1c2b

Please sign in to comment.