From 4648607e3a5ae350d5e8c41e427775b3a6efff4e Mon Sep 17 00:00:00 2001 From: Hepatica Date: Sun, 21 Apr 2024 16:11:26 +0200 Subject: [PATCH] add timer for updating game money on crash --- luckydiamond/src/pages/games-pages/CrashgamePage.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/luckydiamond/src/pages/games-pages/CrashgamePage.vue b/luckydiamond/src/pages/games-pages/CrashgamePage.vue index b8da8f3..29d27f7 100644 --- a/luckydiamond/src/pages/games-pages/CrashgamePage.vue +++ b/luckydiamond/src/pages/games-pages/CrashgamePage.vue @@ -305,8 +305,9 @@ export default { .then((response) => { console.log(response) this.startGame = false - - this.updateUserMoney() + setTimeout(() => { + this.updateUserMoney(); + }, 3000); }) } },