Skip to content

Commit f3c9d00

Browse files
committed
Iterative review display on timeline for multiple phases
1 parent ae47522 commit f3c9d00

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/apps/review/src/pages/active-review-assignements/ChallengeDetailsPage/ChallengeDetailsPage.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,11 @@ export const ChallengeDetailsPage: FC<Props> = (props: Props) => {
11501150

11511151
if (!phase) return
11521152

1153+
const displayName = item.label
1154+
|| item.value
1155+
|| phase.name
1156+
|| 'Unnamed Phase'
1157+
11531158
const uniqueKey = phase.id
11541159
|| `${phase.name}-${phase.scheduledStartDate}-${phase.actualStartDate}`
11551160
if (seen.has(uniqueKey)) {
@@ -1174,7 +1179,7 @@ export const ChallengeDetailsPage: FC<Props> = (props: Props) => {
11741179
duration: typeof phase.duration === 'number' ? phase.duration : undefined,
11751180
end: formatDate(endSource),
11761181
id: phase.id || phase.phaseId,
1177-
name: phase.name || 'Unnamed Phase',
1182+
name: displayName,
11781183
start: formatDate(startSource),
11791184
status,
11801185
})

0 commit comments

Comments
 (0)