diff --git a/apps/app/components/core/sidebar/progress-chart.tsx b/apps/app/components/core/sidebar/progress-chart.tsx index e4a1ce4fb..5fa25e863 100644 --- a/apps/app/components/core/sidebar/progress-chart.tsx +++ b/apps/app/components/core/sidebar/progress-chart.tsx @@ -52,7 +52,7 @@ const ProgressChart: React.FC = ({ distribution, startDate, endDate, tota const maxDates = 4; const totalDates = dates.length; - if (totalDates <= maxDates) return dates; + if (totalDates <= maxDates) return dates.map((d) => renderShortNumericDateFormat(d)); else { const interval = Math.ceil(totalDates / maxDates); const limitedDates = []; diff --git a/apps/app/components/cycles/active-cycle-details.tsx b/apps/app/components/cycles/active-cycle-details.tsx index b15dbd3ca..e7a1990e9 100644 --- a/apps/app/components/cycles/active-cycle-details.tsx +++ b/apps/app/components/cycles/active-cycle-details.tsx @@ -101,6 +101,13 @@ export const ActiveCycleDetails: React.FC = () => { : null ) as { data: IIssue[] | undefined }; + if (!currentCycle) + return ( + + + + ); + if (!cycle) return (