diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index c690282e..bfa0db5f 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -64,6 +64,6 @@ nonzero_ext = "0.3.0" # by default Tauri runs in production mode # when `tauri dev` runs it is executed with `cargo run --no-default-features` if `devPath` is an URL default = ["custom-protocol"] -# this feature is used used for production builds where `devPath` points to the filesystem +# this feature is used for production builds where `devPath` points to the filesystem # DO NOT remove this custom-protocol = ["tauri/custom-protocol"] diff --git a/src-tauri/src/db/mod.rs b/src-tauri/src/db/mod.rs index fe09cf3d..8a6a215f 100644 --- a/src-tauri/src/db/mod.rs +++ b/src-tauri/src/db/mod.rs @@ -1169,7 +1169,7 @@ pub async fn get_players_game_info( let mut chess = Chess::default(); for (i, byte) in moves.iter().enumerate() { if i > 54 { - // max lenght of opening in data + // max length of opening in data break; } let m = decode_move(*byte, &chess).unwrap(); diff --git a/src/components/panels/practice/RepertoireInfo.tsx b/src/components/panels/practice/RepertoireInfo.tsx index e4b7ad88..13caa9ec 100644 --- a/src/components/panels/practice/RepertoireInfo.tsx +++ b/src/components/panels/practice/RepertoireInfo.tsx @@ -47,7 +47,7 @@ function RepertoireInfo() { function searchForMissingMoves() { if (!referenceDb) { - throw Error("No refernce database selected"); + throw Error("No reference database selected"); } if (!currentTab) { throw Error("No current tab"); diff --git a/src/state/keybinds.ts b/src/state/keybinds.ts index 5f23a164..58b93c86 100644 --- a/src/state/keybinds.ts +++ b/src/state/keybinds.ts @@ -33,7 +33,7 @@ const keys = { DATABASE_TAB: { name: "Go to database tab", keys: "b" }, ANNOTATE_TAB: { name: "Go to annotate tab", keys: "d" }, INFO_TAB: { name: "Go to info tab", keys: "i" }, - ANNOTATION_BRILLIANT: { name: "Toggle brillant move annotation", keys: "1" }, + ANNOTATION_BRILLIANT: { name: "Toggle brilliant move annotation", keys: "1" }, ANNOTATION_GOOD: { name: "Toggle good move annotation", keys: "2" }, ANNOTATION_INTERESTING: { name: "Toggle interesting move annotation", diff --git a/src/utils/engines.ts b/src/utils/engines.ts index b8693587..d3a3c24c 100644 --- a/src/utils/engines.ts +++ b/src/utils/engines.ts @@ -110,7 +110,7 @@ export function useDefaultEngines(os: OS | undefined, opened: boolean) { if (!data.ok) { throw new Error("Failed to fetch engines"); } - /// @ts-expect-error only exists on dowloaded + /// @ts-expect-error only exists on downloaded return data.data.filter((e) => e.os === os && e.bmi2 === bmi2); }, ); diff --git a/src/utils/lichess/api.tsx b/src/utils/lichess/api.tsx index 4a142184..ad29a05b 100644 --- a/src/utils/lichess/api.tsx +++ b/src/utils/lichess/api.tsx @@ -401,7 +401,7 @@ export async function downloadLichess( url, path, token, - totalSize: games > 0 ? games * 900 : undefined, // aprox size of a game + totalSize: games > 0 ? games * 900 : undefined, // approx. size of a game }); }