Fixed nextDay

This commit is contained in:
MaxOvs19
2023-05-18 18:21:20 +03:00
parent 0de6c43fe1
commit b45dc0283c
2 changed files with 13 additions and 30 deletions

View File

@ -65,19 +65,6 @@ export const ProfileCalendarComponent = React.memo(
return "pass";
}
// function correctRoute(day) {
// for (const date of reports) {
// if (
// `${new Date(day).getFullYear()}-${correctDay(
// new Date(day).getMonth() + 1
// )}-${correctDay(new Date(day).getDate())}` === date.created_at
// ) {
// return `../view/${day}`;
// }
// }
// return "../../report";
// }
function correctRoute(day) {
for (const date of reports) {
if (