add timer for updating balance on crash

This commit is contained in:
Hepatica
2024-04-21 15:59:53 +02:00
parent c7671237e1
commit 70b8937ef3

View File

@@ -145,7 +145,9 @@ export default {
if (this.crashObject.Status === 'GameEnd' && 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.startGame = false
this.updateUserMoney() setTimeout(() => {
this.updateUserMoney();
}, 3000);
} }
if ( if (
this.crashObject.Players.some(player => this.crashObject.Players.some(player =>