fix calendar
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user