From f2573a5f3bab4b257d60841d4be4e6125a5159bd Mon Sep 17 00:00:00 2001 From: Hepatica Date: Sun, 21 Apr 2024 15:31:04 +0200 Subject: [PATCH] Revert "Add checking for correct status in crash game" This reverts commit 3912f4c3139413a3d162bc53f6feb657bccc9098. --- luckydiamond/src/pages/games-pages/CrashgamePage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/luckydiamond/src/pages/games-pages/CrashgamePage.vue b/luckydiamond/src/pages/games-pages/CrashgamePage.vue index a8a0fdf..5198ee6 100644 --- a/luckydiamond/src/pages/games-pages/CrashgamePage.vue +++ b/luckydiamond/src/pages/games-pages/CrashgamePage.vue @@ -144,13 +144,13 @@ export default { console.error(e) } - if (this.crashObject.Status === 'MoneyPaid' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) { + if (this.crashObject.Status === 'GameEnd' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) { this.startGame = false this.updateUserMoney() } if ( this.crashObject.Players.some(player => - player.UserName === GetCookie('SpUserName') && (player.UserGameState !== 'Win'|| player.UserGameState !== 'MoneyPaid') + player.UserName === GetCookie('SpUserName') && player.UserGameState !== 'Win' ) && this.startGame === false && this.crashObject.Status !== 'GameEnd'