fix calendar

This commit is contained in:
Victor Batischev
2023-12-04 20:13:10 +03:00
parent db9a7b24c6
commit 4e15f79c76
3 changed files with 11 additions and 23 deletions

View File

@ -64,8 +64,8 @@ export const ProfileCalendar = () => {
}
apiRequest(
`/reports/reports-by-date?${requestDates}&user_card_id=${localStorage.getItem(
"cardId",
)}`,
"cardId"
)}`
).then((reports) => {
let spendTime = 0;
for (const report of reports) {
@ -110,11 +110,9 @@ export const ProfileCalendar = () => {
<Link to="/report">
<button
className="calendar__btn"
onClick={() => {
dispatch(setReportDate(""));
}}
onClick={() => dispatch(setReportDate(""))}
>
Заполнить отчет за день
Заполнить отчет
</button>
</Link>
</div>