From 68c6aa532778494b51fdb7841008d6b15bf14b06 Mon Sep 17 00:00:00 2001 From: Victor Batischev Date: Wed, 20 Dec 2023 16:15:14 +0300 Subject: [PATCH] format --- src/components/ProfileCalendar/ProfileCalendar.jsx | 2 +- .../ProfileCalendar/ProfileCalendarComponent.jsx | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ProfileCalendar/ProfileCalendar.jsx b/src/components/ProfileCalendar/ProfileCalendar.jsx index ba1a175a..309467b7 100644 --- a/src/components/ProfileCalendar/ProfileCalendar.jsx +++ b/src/components/ProfileCalendar/ProfileCalendar.jsx @@ -56,7 +56,7 @@ export const ProfileCalendar = () => { )}` ).then((reports) => { let spendTime = 0; - + reports .filter( (item) => new Date(item.created_at).getMonth() === value.month() diff --git a/src/components/ProfileCalendar/ProfileCalendarComponent.jsx b/src/components/ProfileCalendar/ProfileCalendarComponent.jsx index 1b97711c..7de276b0 100644 --- a/src/components/ProfileCalendar/ProfileCalendarComponent.jsx +++ b/src/components/ProfileCalendar/ProfileCalendarComponent.jsx @@ -295,15 +295,15 @@ export const ProfileCalendarComponent = React.memo( ? `${getCorrectDate(startDate)} - ${getCorrectDate(endDate)}` : `${getCorrectDate(endDate)} - ${getCorrectDate(startDate)}` : activePeriod - ? "Выберите диапазон на календаре" - : "Выбрать диапазон"} + ? "Выберите диапазон на календаре" + : "Выбрать диапазон"} {totalRangeHours ? `${totalRangeHours} ${hourOfNum(totalRangeHours)}` : endDate - ? "0 часов" - : ""} + ? "0 часов" + : ""} {endDate && (