Skip to content

Commit 46f426b

Browse files
tariknzCopilot
andauthored
Update src/frontend/components/TrackMap/hooks/useDriverProgress.tsx
Co-authored-by: Copilot <[email protected]>
1 parent bc41857 commit 46f426b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/components/TrackMap/hooks/useDriverProgress.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const useDriverProgress = () => {
4141
isPlayer: driver.CarIdx === driverIdx,
4242
}))
4343
.filter((d) => d.progress > -1) // ignore drivers not on track
44-
.filter((d) => d.driver.CarIdx > -1 && d.driver.CarIdx !== paceCarIdx); // ignore pace car
44+
.filter((d) => d.driver.CarIdx !== paceCarIdx); // ignore pace car
4545
}, [drivers, throttledLapDist, driverIdx, paceCarIdx]);
4646

4747
return driversTrackData;

0 commit comments

Comments
 (0)