Skip to content

Commit

Permalink
[frontend/backend] Chaining injects logically
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimfacion committed Sep 10, 2024
1 parent 9d7d51c commit fc571f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openbas-front/src/components/CustomTimelinePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function BackgroundComponent({
const date = moment.utc(beginningDate)
.add((minutesPerGap * 3 * i) + offset, 'm');
newParsedDates.push({
parsedDate: viewportData !== undefined && viewportData?.zoom > 0.45
parsedDate: viewportData === undefined || viewportData?.zoom > 0.5
? date.format('MMMM Do, YYYY - h:mmA') : date.format('l-h:mmA'),
dateIndex: Math.round((date.unix() - beginningDate.unix()) / (minutesPerGap * 3 * 60)),
});
Expand Down

0 comments on commit fc571f1

Please sign in to comment.