diff --git a/apps/app/components/workspace/issues-list.tsx b/apps/app/components/workspace/issues-list.tsx index baf61da73..0cb8416c0 100644 --- a/apps/app/components/workspace/issues-list.tsx +++ b/apps/app/components/workspace/issues-list.tsx @@ -45,12 +45,14 @@ export const IssuesList: React.FC = ({ issues, type }) => { >

{type}

Issue

-

Due Date

+

{type === "overdue" ? "Due" : "Start"} Date

{issues.length > 0 ? ( issues.map((issue) => { - const dateDifference = getDateDifference(new Date(issue.target_date as string)); + const date = type === "overdue" ? issue.target_date : issue.start_date; + + const dateDifference = getDateDifference(new Date(date as string)); return ( = ({ issues, type }) => {
{truncateText(issue.name, 30)}
- {renderShortDateWithYearFormat(new Date(issue.target_date as string))} + {renderShortDateWithYearFormat(new Date(date?.toString() ?? ""))}
diff --git a/apps/app/types/issues.d.ts b/apps/app/types/issues.d.ts index f035ae930..9cbcef847 100644 --- a/apps/app/types/issues.d.ts +++ b/apps/app/types/issues.d.ts @@ -207,7 +207,8 @@ export interface IIssueLite { id: string; name: string; project_id: string; - target_date: string; + start_date?: string | null; + target_date?: string | null; workspace__slug: string; }