SyntaxSquad/DADProject#16 fix: Cancle and Return is working and some other fixes involving game duration
This commit is contained in:
@@ -92,7 +92,6 @@ export const useSocketStore = defineStore('websocket', () => {
|
||||
socket.value.emit('play-card', { gameId, cardId })
|
||||
}
|
||||
|
||||
// --- NEW: Surrender Action ---
|
||||
const surrender = (gameId) => {
|
||||
if (!socket.value?.connected) return
|
||||
console.log('[Game] Surrendering:', gameId)
|
||||
|
||||
Reference in New Issue
Block a user