chore: temporarily disable card flip functionality
All checks were successful
Build and Deploy / build (push) Successful in 1m20s

This commit is contained in:
2025-12-16 13:01:11 +01:00
parent dd9f19aff7
commit 260920184d

View File

@@ -111,15 +111,15 @@ export const GameView: React.FC<GameViewProps> = ({ gameState, currentPlayerId }
});
}
const toggleFlip = (cardId: string) => {
socketService.socket.emit('game_action', {
roomId: gameState.roomId,
action: {
type: 'FLIP_CARD',
cardId
}
});
}
// const toggleFlip = (cardId: string) => {
// socketService.socket.emit('game_action', {
// roomId: gameState.roomId,
// action: {
// type: 'FLIP_CARD',
// cardId
// }
// });
// }
const myPlayer = gameState.players[currentPlayerId];
const opponentId = Object.keys(gameState.players).find(id => id !== currentPlayerId);