Skip to content

Commit

Permalink
Merge pull request #3413 from ingef/fix/use-months-not-quarters
Browse files Browse the repository at this point in the history
fix: quarters are 3 months long
  • Loading branch information
awildturtok authored Apr 29, 2024
2 parents df7570b + a56adb7 commit 85ff4c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/js/preview/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function useDateTickHandler(stats: PreviewStatistics) {
shouldTickRender = (date: Date) => date.getMonth() % 3 === 0;
}
// > 12 quarters -> halfyears
if (monthCount > 4 * 12) {
if (monthCount > 3 * 12) {
shouldTickRender = (date: Date) => date.getMonth() % 6 === 0;
}
// > 12 halfyears -> years
Expand Down

0 comments on commit 85ff4c3

Please sign in to comment.