From 89615a7a530b50d936a3d6e341526cf8649eef0e Mon Sep 17 00:00:00 2001 From: top Date: Fri, 13 Oct 2023 12:19:10 +0000 Subject: [PATCH] Fix pushed after double down showing wrong visual indicator (#214) Co-authored-by: Chuck Reviewed-on: https://fsdfsd.net/rDrama/rDrama/pulls/214 Co-authored-by: top Co-committed-by: top --- files/assets/js/casino/blackjack_screen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/assets/js/casino/blackjack_screen.js b/files/assets/js/casino/blackjack_screen.js index ca2ecfe72..68e8ee1dc 100644 --- a/files/assets/js/casino/blackjack_screen.js +++ b/files/assets/js/casino/blackjack_screen.js @@ -186,7 +186,7 @@ function updateCardsetBackgrounds(state, complete = false) { if(complete){ const wager = state.has_player_split ? state?.wager?.amount * 2 : state?.wager?.amount; let dealerShows = state.payout < wager ? 'WON': 'LOST'; - if(state.payout === wager) dealerShows = 'PUSHED' + if(state.payout === wager || (state.player_doubled_down && state.status === 'PUSHED')) dealerShows = 'PUSHED' cardsets[0]?.classList.add(`blackjack-cardset__${dealerShows}`) } else {