chore: temporarily disable card flip functionality
All checks were successful
Build and Deploy / build (push) Successful in 1m20s
All checks were successful
Build and Deploy / build (push) Successful in 1m20s
This commit is contained in:
@@ -111,15 +111,15 @@ export const GameView: React.FC<GameViewProps> = ({ gameState, currentPlayerId }
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const toggleFlip = (cardId: string) => {
|
// const toggleFlip = (cardId: string) => {
|
||||||
socketService.socket.emit('game_action', {
|
// socketService.socket.emit('game_action', {
|
||||||
roomId: gameState.roomId,
|
// roomId: gameState.roomId,
|
||||||
action: {
|
// action: {
|
||||||
type: 'FLIP_CARD',
|
// type: 'FLIP_CARD',
|
||||||
cardId
|
// cardId
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
const myPlayer = gameState.players[currentPlayerId];
|
const myPlayer = gameState.players[currentPlayerId];
|
||||||
const opponentId = Object.keys(gameState.players).find(id => id !== currentPlayerId);
|
const opponentId = Object.keys(gameState.players).find(id => id !== currentPlayerId);
|
||||||
|
|||||||
Reference in New Issue
Block a user