diff --git a/src/pages/profile_tasks.tsx b/src/pages/profile_tasks.tsx index 4d81969..af707f2 100644 --- a/src/pages/profile_tasks.tsx +++ b/src/pages/profile_tasks.tsx @@ -90,6 +90,7 @@ const ProfileTasks: FunctionComponent = () => { setIsEdit(false); setEditContent(null); setIsCreating(false); + setCalendarDate(null); }} > {isEdit && editContent && ( @@ -203,7 +204,7 @@ const ProfileTasks: FunctionComponent = () => {
Сегодня: {getDate}
{tasks - .sort((a, b) => b.id - a.id) + .sort((a, b) => b.date.getTime() - a.date.getTime()) .map((task) => (