@@ -249,6 +249,7 @@ export default function ReplayPage() {
249249 const isRace = sessionType === "R" || sessionType === "S" ;
250250 const isQualifying = sessionType === "Q" || sessionType === "SQ" ;
251251 const isPractice = sessionType === "FP1" || sessionType === "FP2" || sessionType === "FP3" ;
252+ const hasSectors = isQualifying || isPractice ;
252253
253254 // For practice sessions, cap the total time at the official session duration (60 min)
254255 // so the "remaining" timer is accurate rather than including post-session telemetry
@@ -259,7 +260,7 @@ export default function ReplayPage() {
259260 const SECTOR_HEX : Record < string , string > = { purple : "#A855F7" , green : "#22C55E" , yellow : "#EAB308" } ;
260261 const DEFAULT_SECTOR = "#3A3A4A" ;
261262 const sectorOverlay : SectorOverlay | null = ( ( ) => {
262- if ( ! isQualifying || ! showSectorOverlay || ! trackData ?. sector_boundaries ) return null ;
263+ if ( ! hasSectors || ! showSectorOverlay || ! trackData ?. sector_boundaries ) return null ;
263264 const target = sectorFocusDriver && selectedDrivers . includes ( sectorFocusDriver )
264265 ? sectorFocusDriver
265266 : null ;
@@ -285,7 +286,7 @@ export default function ReplayPage() {
285286 if ( ! isRace && settings . showBestLapTime ) w += 60 ; // best lap time column
286287 if ( settings . showLastLapTime ) w += 60 ; // last lap time column
287288 if ( settings . showGapToLeader ) w += 56 + ( ! isRace ? 8 : 0 ) ; // extra margin between lap time and gap in practice/qualifying
288- if ( isQualifying && settings . showSectors ) w += 36 ; // sector indicators (28 + 8 margin)
289+ if ( hasSectors && settings . showSectors ) w += 36 ; // sector indicators (28 + 8 margin)
289290 if ( isRace && settings . showPitStops ) w += 24 ;
290291 if ( isRace && settings . showTyreHistory ) w += 36 ;
291292 if ( settings . showTyreType ) w += 24 ;
@@ -535,7 +536,7 @@ export default function ReplayPage() {
535536 { /* Telemetry now in bottom drawer */ }
536537
537538 { /* Sector overlay toggle - desktop qualifying only */ }
538- { ! isMobile && isQualifying && trackData ?. sector_boundaries && (
539+ { ! isMobile && hasSectors && trackData ?. sector_boundaries && (
539540 < div className = "absolute bottom-2 right-36 z-20 flex items-center gap-1" >
540541 { showSectorOverlay && selectedDrivers . length === 0 && (
541542 < span className = "text-[10px] text-f1-muted mr-1" > Select a driver to view sectors</ span >
@@ -574,7 +575,7 @@ export default function ReplayPage() {
574575 ) }
575576
576577 { /* Sector overlay controls - mobile qualifying only */ }
577- { isMobile && isQualifying && trackData ?. sector_boundaries && (
578+ { isMobile && hasSectors && trackData ?. sector_boundaries && (
578579 < div className = "absolute bottom-2 left-2 right-2 z-20 flex items-center gap-1" >
579580 { showSectorOverlay && selectedDrivers . length > 0 && (
580581 < div className = "flex items-center gap-1 overflow-x-auto" >
0 commit comments