fix : lichess api return type

This commit is contained in:
GuillaumeSD
2025-05-10 20:01:01 +02:00
parent 82d216dfb0
commit fea1f3fe47
3 changed files with 9 additions and 7 deletions

View File

@@ -160,7 +160,9 @@ export default function EngineSettingsDialog({ open, onClose }: Props) {
displayEmpty
input={<OutlinedInput label="Piece set" />}
value={pieceSet}
onChange={(e) => setPieceSet(e.target.value)}
onChange={(e) =>
setPieceSet(e.target.value as (typeof PIECE_SETS)[number])
}
sx={{ width: 200, maxWidth: "100%" }}
>
{PIECE_SETS.map((name) => (