We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f70abc5 commit d4c9094Copy full SHA for d4c9094
src/frontend/components/Standings/createStandings.ts
@@ -213,7 +213,7 @@ export const sliceRelevantDrivers = <T extends { isPlayer?: boolean }>(
213
// probably simplify it so its a bit more readable
214
return groupedStandings.map(([classIdx, standings]) => {
215
const playerIndex = standings.findIndex((driver) => driver.isPlayer);
216
- if (`${driverClass}` !== classIdx) {
+ if (String(driverClass) !== classIdx) {
217
// if player is not in this class, return only top 3 drivers in that class
218
return [classIdx, standings.slice(0, numNonClassDrivers)];
219
}
0 commit comments