squash debug commits

This commit is contained in:
Aleksandr Zaitsev 2024-07-21 22:34:39 +03:00
parent 793432fdd9
commit 1cf09ec4f0
2 changed files with 2 additions and 4 deletions

View File

@ -3,7 +3,6 @@ import { useBotStore } from '@/stores/bot';
import { useGameStore } from '@/stores/game';
import { usePlayerStore } from '@/stores/player';
import { useWebsocketStore } from '@/stores/websocket';
import { onMounted, onBeforeMount } from 'vue'
import { useRoute, useRouter } from 'vue-router'
const player = usePlayerStore()
@ -12,8 +11,8 @@ const bot = useBotStore()
const route = useRoute()
const router = useRouter()
const websocket = useWebsocketStore()
console.log(route.params.gameId)
if (game.owner == player.id || game.opponent.id == player.id) {
if (game.owner == player.id || game.player.id == player.id) {
router.replace({ name: 'lobby', params: { gameId: game.id } })
} else {
game.$reset()

View File

@ -13,7 +13,6 @@ if (game.createdAt == null) {
router.replace({name:'index'})
}
const board = new boardConstructor(game.boardSize, game.getAvailableItems())
//Board cells in browser MB not needed
const playerView = ref()