This commit is contained in:
Victor Batischev 2023-12-20 16:15:14 +03:00
parent 7a1eeb6886
commit 68c6aa5327
2 changed files with 5 additions and 5 deletions

View File

@ -56,7 +56,7 @@ export const ProfileCalendar = () => {
)}`
).then((reports) => {
let spendTime = 0;
reports
.filter(
(item) => new Date(item.created_at).getMonth() === value.month()

View File

@ -295,15 +295,15 @@ export const ProfileCalendarComponent = React.memo(
? `${getCorrectDate(startDate)} - ${getCorrectDate(endDate)}`
: `${getCorrectDate(endDate)} - ${getCorrectDate(startDate)}`
: activePeriod
? "Выберите диапазон на календаре"
: "Выбрать диапазон"}
? "Выберите диапазон на календаре"
: "Выбрать диапазон"}
</span>
<span>
{totalRangeHours
? `${totalRangeHours} ${hourOfNum(totalRangeHours)}`
: endDate
? "0 часов"
: ""}
? "0 часов"
: ""}
</span>
{endDate && (
<BaseButton