Fix lint: use !== null/undefined instead of != null
oxlint enforces eqeqeq; the null check in getInitialDraftSpeed used != which triggered two errors. https://claude.ai/code/session_01DgHNkvJXGizx41CE2tkVS1
This commit is contained in:
parent
0a17b9154a
commit
9d607dd7ea
1 changed files with 2 additions and 1 deletions
|
|
@ -106,7 +106,8 @@ export function getInitialDraftSpeed(season: DraftSpeedSource): string {
|
|||
(p) => p.bankSec === season?.draftInitialTime && p.incrSec === season?.draftIncrementTime
|
||||
);
|
||||
if (preset) return preset.value;
|
||||
if (season?.draftInitialTime != null && season?.draftIncrementTime != null) {
|
||||
if (season?.draftInitialTime !== null && season?.draftInitialTime !== undefined &&
|
||||
season?.draftIncrementTime !== null && season?.draftIncrementTime !== undefined) {
|
||||
return `custom:${season.draftInitialTime}:${season.draftIncrementTime}`;
|
||||
}
|
||||
return "standard";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue