This commit is contained in:
Hepatica
2024-02-25 05:34:39 +01:00
parent f18cff9842
commit 277d103103

View File

@@ -396,6 +396,7 @@ export default {
lastUserWinerGameId: " ",
lastUserWinner: "",
firstStartOfPage: false,
winStake: 0,
// lastIdGame: "",
};
},
@@ -665,6 +666,8 @@ export default {
try {
if (data) {
const dataObject = JSON.parse(data);
this.winStake = dataObject.CurrentGame.winStake;
console.log(dataObject);
if (dataObject.CurrentGame.GameState == "WaitingForPlayers") {
@@ -699,6 +702,7 @@ export default {
if (dataObject.CurrentGame.GameState == "Running") {
this.autoplay = 20;
}
this.updatePlayerInfo(
dataObject.LastGame.WinnerUserName,
dataObject.LastGame.WinStake,