diff --git a/src/pages/dashboard/Content/QuizStatistics/DateFilter.tsx b/src/pages/dashboard/Content/QuizStatistics/DateFilter.tsx index c2b7fff..93d052c 100644 --- a/src/pages/dashboard/Content/QuizStatistics/DateFilter.tsx +++ b/src/pages/dashboard/Content/QuizStatistics/DateFilter.tsx @@ -29,7 +29,7 @@ export const DateFilter = ({ to, setTo, from, setFrom }: DateFilterProps) => { date && setFrom(date)} + onChange={(date) => date && setFrom(date.startOf('day'))} renderInput={(params) => ( { date && setTo(date)} + onChange={(date) => date && setTo(date.endOf('day'))} renderInput={(params) => ( { const [to, setTo] = useState(moment()); const theme = useTheme(); - const statistics = useSchildStatistics(from, to); + const statistics = useSchildStatistics(from, to) + .map((obj) => ({...obj, Money: Number((obj.Money / 100).toFixed(2))})); useEffect(() => { if (!openUserModal) {