@@ -24,7 +24,7 @@ const QualRow = ({
2424 token,
2525} : {
2626 event : Event ;
27- showLine : 0 | 1 ;
27+ showLine : 0 | 1 | null ;
2828 season : string ;
2929 token : string ;
3030} ) => {
@@ -90,7 +90,7 @@ const QualRow = ({
9090 // Make a new array of max queuing matches to display
9191 const maxQ = typeof e . options ?. maxQueueingToShow === 'number'
9292 ? e . options ?. maxQueueingToShow
93- : 3 ;
93+ : 1 ;
9494 const toFill = new Array ( maxQ ) . fill ( null ) ;
9595 toFill . forEach ( ( _ , i ) => {
9696 toFill [ i ] = i + 2 ;
@@ -250,13 +250,15 @@ const QualRow = ({
250250 < span className = { styles . matchNumber } >
251251 { ( nextMatch as QualMatch ) ?. number }
252252 </ span >
253- < span className = { styles . nextMatchScroll } >
254- < AllianceFader
255- red = { getRedStr ( nextMatch as QualMatch ) }
256- blue = { getBlueStr ( nextMatch as QualMatch ) }
257- showLine = { showLine }
258- />
259- </ span >
253+ { showLine !== null ? (
254+ < span className = { styles . nextMatchScroll } >
255+ < AllianceFader
256+ red = { getRedStr ( nextMatch as QualMatch ) }
257+ blue = { getBlueStr ( nextMatch as QualMatch ) }
258+ showLine = { showLine }
259+ />
260+ </ span >
261+ ) : < > </ > }
260262 </ Fragment >
261263 ) }
262264
@@ -277,13 +279,15 @@ const QualRow = ({
277279 return (
278280 < div className = { styles . flexRow } >
279281 < span className = { styles . queueingMatchNumber } > { match . number } -</ span >
280- < div style = { { marginLeft : '16vw' , position : 'relative' , top : '4vh' } } >
281- < AllianceFader
282- red = { getRedStr ( match ) }
283- blue = { getBlueStr ( match ) }
284- showLine = { showLine }
285- />
286- </ div >
282+ { showLine !== null && (
283+ < div style = { { marginLeft : '16vw' , position : 'relative' , top : '4vh' } } >
284+ < AllianceFader
285+ red = { getRedStr ( match ) }
286+ blue = { getBlueStr ( match ) }
287+ showLine = { showLine }
288+ />
289+ </ div >
290+ ) }
287291 </ div >
288292 ) ;
289293 }
@@ -305,13 +309,15 @@ const QualRow = ({
305309 < span className = { styles . matchNumber } >
306310 { ( queueingMatches [ 0 ] as QualMatch ) ?. number }
307311 </ span >
308- < span >
309- < AllianceFader
310- red = { getRedStr ( queueingMatches [ 0 ] as QualMatch ) }
311- blue = { getBlueStr ( queueingMatches [ 0 ] as QualMatch ) }
312- showLine = { showLine }
313- />
314- </ span >
312+ { showLine !== null && (
313+ < span >
314+ < AllianceFader
315+ red = { getRedStr ( queueingMatches [ 0 ] as QualMatch ) }
316+ blue = { getBlueStr ( queueingMatches [ 0 ] as QualMatch ) }
317+ showLine = { showLine }
318+ />
319+ </ span >
320+ ) }
315321 </ Fragment >
316322 ) }
317323
0 commit comments