@@ -42,34 +42,49 @@ export function CutoffTimeLimitPanel({
4242 </ span >
4343 ) }
4444
45- { timeLimit && timeLimit ?. cumulativeRoundIds . length > 0 && (
46- < div className = "px-2" >
47- < Trans
48- i18nKey = { 'common.wca.cumulativeTimelimit' }
49- values = { { time : timelimitTime } }
50- components = { { b : < span className = "font-semibold" /> } }
51- />
52- { ': ' }
53- < span >
54- { timeLimit . cumulativeRoundIds
55- . filter ( ( activityCode ) => activityCode !== round . id )
56- . map ( ( activityCode , i , arry ) => {
57- const { eventId, roundNumber } = parseActivityCode ( activityCode ) ;
58- return (
59- < Link
60- key = { activityCode }
61- to = { `/competitions/${ wcif ?. id } /events/${ activityCode } ` } >
62- < span
63- className = { `cubing-icon event-${ eventId } mx-1 before:-ml-1 before:mr-2` } >
64- { t ( 'common.activityCodeToName.round' , { roundNumber } ) }
65- { i < arry . length - 1 ? ', ' : '' }
66- </ span >
67- </ Link >
68- ) ;
69- } ) }
45+ { timeLimit &&
46+ timeLimit ?. cumulativeRoundIds . length > 0 &&
47+ timeLimit . cumulativeRoundIds . filter ( ( activityCode ) => activityCode !== round . id )
48+ . length === 0 && (
49+ < span className = "px-2" >
50+ < Trans
51+ i18nKey = { 'common.wca.cumulativeTimelimit' }
52+ values = { { time : timelimitTime } }
53+ components = { { b : < span className = "font-semibold" /> } }
54+ />
7055 </ span >
71- </ div >
72- ) }
56+ ) }
57+
58+ { timeLimit &&
59+ timeLimit ?. cumulativeRoundIds . length > 0 &&
60+ timeLimit . cumulativeRoundIds . filter ( ( activityCode ) => activityCode !== round . id )
61+ . length > 0 && (
62+ < div className = "px-2" >
63+ < span >
64+ < Trans
65+ i18nKey = { 'common.wca.cumulativeTimelimitWithrounds' }
66+ values = { { time : timelimitTime } }
67+ components = { { b : < span className = "font-semibold" /> } }
68+ />
69+ { timeLimit . cumulativeRoundIds
70+ . filter ( ( activityCode ) => activityCode !== round . id )
71+ . map ( ( activityCode , i , arry ) => {
72+ const { eventId, roundNumber } = parseActivityCode ( activityCode ) ;
73+ return (
74+ < Link
75+ key = { activityCode }
76+ to = { `/competitions/${ wcif ?. id } /events/${ activityCode } ` } >
77+ < span
78+ className = { `cubing-icon event-${ eventId } mx-1 before:-ml-1 before:mr-2` } >
79+ { t ( 'common.activityCodeToName.round' , { roundNumber } ) }
80+ { i < arry . length - 1 ? ', ' : '' }
81+ </ span >
82+ </ Link >
83+ ) ;
84+ } ) }
85+ </ span >
86+ </ div >
87+ ) }
7388 </ div >
7489 { round . advancementCondition && (
7590 < div >
0 commit comments