Skip to content

Commit d4c9094

Browse files
tariknzCopilot
andauthored
Update src/frontend/components/Standings/createStandings.ts
Co-authored-by: Copilot <[email protected]>
1 parent f70abc5 commit d4c9094

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/frontend/components/Standings/createStandings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export const sliceRelevantDrivers = <T extends { isPlayer?: boolean }>(
213213
// probably simplify it so its a bit more readable
214214
return groupedStandings.map(([classIdx, standings]) => {
215215
const playerIndex = standings.findIndex((driver) => driver.isPlayer);
216-
if (`${driverClass}` !== classIdx) {
216+
if (String(driverClass) !== classIdx) {
217217
// if player is not in this class, return only top 3 drivers in that class
218218
return [classIdx, standings.slice(0, numNonClassDrivers)];
219219
}

0 commit comments

Comments
 (0)