Skip to content

Commit ea115f9

Browse files
fix: bug with duplicate get_move requests
1 parent 989e4a5 commit ea115f9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/hooks/useOpeningDrillController/useOpeningDrillController.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,7 @@ export const useOpeningDrillController = (
794794
controller.currentNode &&
795795
!isPlayerTurn &&
796796
waitingForMaiaResponse &&
797+
currentDrillGame.moves.length > 0 && // Only respond if moves have been made (not initial setup)
797798
!isDrillComplete
798799
) {
799800
// It's Maia's turn to respond to the player's move

0 commit comments

Comments
 (0)