Skip to content

Commit

Permalink
Pull request 1792: 5633-invalid-date
Browse files Browse the repository at this point in the history
Updates #5633.

Squashed commit of the following:

commit 889bc7a
Author: Ainar Garipov <A.Garipov@AdGuard.COM>
Date:   Thu Mar 30 14:31:42 2023 +0300

    client: fix dashboard date
  • Loading branch information
ainar-g committed Mar 30, 2023
1 parent da9008a commit a0349b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const Dashboard = ({
</div>
)}
<Statistics
interval={stats.interval}
interval={msToDays(stats.interval)}
dnsQueries={stats.dnsQueries}
blockedFiltering={stats.blockedFiltering}
replacedSafebrowsing={stats.replacedSafebrowsing}
Expand Down
3 changes: 2 additions & 1 deletion client/src/components/ui/Line.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import round from 'lodash/round';
import { useSelector } from 'react-redux';
import PropTypes from 'prop-types';
import './Line.css';
import { msToDays } from '../../helpers/helpers';

const Line = ({
data, color = 'black',
}) => {
const interval = useSelector((state) => state.stats.interval);
const interval = msToDays(useSelector((state) => state.stats.interval));

return <ResponsiveLine
enableArea
Expand Down

0 comments on commit a0349b6

Please sign in to comment.