pull/124/head
parent
a076e36d5c
commit
ffa4212c87
|
@ -122,7 +122,11 @@ function updateBlackjackTable(state) {
|
|||
updateResult(`Pushed: Received ${state.wager.amount} ${currency}`, "success");
|
||||
break;
|
||||
case 'LOST':
|
||||
updateResult(`Lost ${state.wager.amount} ${currency}`, "danger");
|
||||
let lost = state.wager.amount;
|
||||
if (state.player_doubled_down) {
|
||||
lost *= 2;
|
||||
}
|
||||
updateResult(`Lost ${lost} ${currency}`, "danger");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue