From 3be3fd61047cefbbf9bc4f3bc1c32978276e5a43 Mon Sep 17 00:00:00 2001 From: Kostya Date: Sun, 4 Feb 2024 20:08:22 +0300 Subject: [PATCH] fixed bug with exit from page crash --- luckydiamond/src/pages/games-pages/CrashgamePage.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/luckydiamond/src/pages/games-pages/CrashgamePage.vue b/luckydiamond/src/pages/games-pages/CrashgamePage.vue index 5c2a3a9..2872848 100644 --- a/luckydiamond/src/pages/games-pages/CrashgamePage.vue +++ b/luckydiamond/src/pages/games-pages/CrashgamePage.vue @@ -116,6 +116,14 @@ export default { if (this.crashObject.Status === 'GameEnd' && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) { this.startGame = false } + if ( + this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName')) && + this.startGame === false && + this.crashObject.Status !== 'GameEnd' && + this.crashObject.Players.some(player => player.UserGameState !== 'Win') + ) { + this.startGame = true; + } }) }, validations() {