Skip to content

Commit

Permalink
exclude duplicate positions in practice mode (closes #364)
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoBSalgueiro committed Sep 8, 2024
1 parent 8cada13 commit b279d5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/files/opening.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export function buildFromTree(
if (
item.node.children.length === 0 ||
isPrefix(item.position, start) ||
!item.node.children[0].san
!item.node.children[0].san ||
cards.find((c) => c.fen === item.node.fen)
) {
continue;
}
Expand Down

0 comments on commit b279d5b

Please sign in to comment.