fix : tsc down compiling

This commit is contained in:
GuillaumeSD
2025-05-18 23:41:21 +02:00
parent ae0b2735e4
commit cac16b2ace
3 changed files with 3 additions and 3 deletions

View File

@@ -60,7 +60,7 @@ export const useCurrentPosition = (engine: UciEngine | null) => {
}
if (!position.eval?.opening) {
for (const move of boardHistory.toReversed()) {
for (const move of boardHistory.slice().reverse()) {
const moveFen = move.after.split(" ")[0];
const opening = openings.find((opening) => opening.fen === moveFen);
if (opening) {