Skip to content

Commit

Permalink
client: fix stats date
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Sep 1, 2023
1 parent 905f961 commit ab579d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/components/ui/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Line = ({
enableGridY={false}
enablePoints={false}
xFormat={(x) => {
if (interval === 1 || interval === 7) {
if (interval >= 1 && interval <= 7) {
const hoursAgo = subHours(Date.now(), 24 * interval);
return dateFormat(addHours(hoursAgo, x), 'D MMM HH:00');
}
Expand Down

0 comments on commit ab579d9

Please sign in to comment.