Skip to content

Commit e64ea3d

Browse files
committed
fix(web): times up indicator on execution phase
1 parent 663f14f commit e64ea3d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/src/pages/Cases/CaseDetails/Timeline.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ const useTimeline = (dispute: DisputeDetailsQuery["dispute"], currentItemIndex:
7171
const countdown = useCountdown(deadlineCurrentPeriod);
7272
const getSubitems = (index: number): string[] | React.ReactNode[] => {
7373
if (typeof countdown !== "undefined" && dispute) {
74-
if (index === currentItemIndex && countdown === 0) {
74+
if (index === titles.length - 1) {
75+
return [];
76+
} else if (index === currentItemIndex && countdown === 0) {
7577
return ["Time's up!"];
7678
} else if (index < currentItemIndex) {
7779
return [];
78-
} else if (index === titles.length - 1) {
79-
return [];
8080
} else if (index === currentItemIndex) {
8181
return [secondsToDayHourMinute(countdown)];
8282
} else {

0 commit comments

Comments
 (0)