File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,7 @@ export const StandingsSettings = () => {
154154 </ span >
155155 < input
156156 type = "number"
157+ min = { 0 }
157158 value = { settings . config . driverStandings . buffer }
158159 onChange = { ( e ) =>
159160 handleConfigChange ( {
@@ -172,6 +173,7 @@ export const StandingsSettings = () => {
172173 </ span >
173174 < input
174175 type = "number"
176+ min = { 0 }
175177 value = { settings . config . driverStandings . numNonClassDrivers }
176178 onChange = { ( e ) =>
177179 handleConfigChange ( {
@@ -190,6 +192,7 @@ export const StandingsSettings = () => {
190192 </ span >
191193 < input
192194 type = "number"
195+ min = { 0 }
193196 value = { settings . config . driverStandings . minPlayerClassDrivers }
194197 onChange = { ( e ) =>
195198 handleConfigChange ( {
@@ -208,6 +211,7 @@ export const StandingsSettings = () => {
208211 </ span >
209212 < input
210213 type = "number"
214+ min = { 0 }
211215 value = { settings . config . driverStandings . numTopDrivers }
212216 onChange = { ( e ) =>
213217 handleConfigChange ( {
Original file line number Diff line number Diff line change @@ -261,8 +261,8 @@ export const sliceRelevantDrivers = <T extends { isPlayer?: boolean }>(
261261 lastIndex ++ ;
262262 }
263263
264- const sortedDrivers = [ ... relevantDrivers ] . sort (
265- ( a , b ) => standings . indexOf ( a ) - standings . indexOf ( b )
264+ const sortedDrivers = standings . filter ( ( driver ) =>
265+ relevantDrivers . has ( driver ) ,
266266 ) ;
267267
268268 return [ classIdx , sortedDrivers ] ;
You can’t perform that action at this time.
0 commit comments