From 70b8937ef32e24fa4886d5a47e05ddd9ff64bc08 Mon Sep 17 00:00:00 2001 From: Hepatica Date: Sun, 21 Apr 2024 15:59:53 +0200 Subject: [PATCH] add timer for updating balance on crash --- luckydiamond/src/pages/games-pages/CrashgamePage.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/luckydiamond/src/pages/games-pages/CrashgamePage.vue b/luckydiamond/src/pages/games-pages/CrashgamePage.vue index ed77710..b8da8f3 100644 --- a/luckydiamond/src/pages/games-pages/CrashgamePage.vue +++ b/luckydiamond/src/pages/games-pages/CrashgamePage.vue @@ -145,7 +145,9 @@ export default { if (this.crashObject.Status === 'GameEnd' && this.startGame === true && this.crashObject.Players.some(player => player.UserName === GetCookie('SpUserName'))) { this.startGame = false - this.updateUserMoney() + setTimeout(() => { + this.updateUserMoney(); + }, 3000); } if ( this.crashObject.Players.some(player =>