From b339de64a6c7376c51ac15e0ca0f5f04b7fb94db Mon Sep 17 00:00:00 2001 From: Aevann Date: Thu, 23 May 2024 04:19:33 +0300 Subject: [PATCH] fix this https://watchpeopledie.tv/h/meta/post/61549/megathread-for-bugs-and-suggestions/3414026#context --- files/assets/js/casino/game_screen.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/files/assets/js/casino/game_screen.js b/files/assets/js/casino/game_screen.js index 35de02270..4440338b0 100644 --- a/files/assets/js/casino/game_screen.js +++ b/files/assets/js/casino/game_screen.js @@ -11,17 +11,13 @@ function initializeGame() { } function updatePlayerCurrencies(updated) { - if (updated.coins) { - document.getElementById("user-coins-amount").textContent = commas(updated.coins); - document.getElementById("user-coins-amount-mobile").textContent = commas(updated.coins); - document.getElementById("user-coins-amount-casino").textContent = commas(updated.coins); - } + document.getElementById("user-coins-amount").textContent = commas(updated.coins); + document.getElementById("user-coins-amount-mobile").textContent = commas(updated.coins); + document.getElementById("user-coins-amount-casino").textContent = commas(updated.coins); - if (updated.marseybux) { - document.getElementById("user-bux-amount").textContent = commas(updated.marseybux); - document.getElementById("user-bux-amount-mobile").textContent = commas(updated.marseybux); - document.getElementById("user-bux-amount-casino").textContent = commas(updated.marseybux); - } + document.getElementById("user-bux-amount").textContent = commas(updated.marseybux); + document.getElementById("user-bux-amount-mobile").textContent = commas(updated.marseybux); + document.getElementById("user-bux-amount-casino").textContent = commas(updated.marseybux); } function getWager() {