forked from MarseyWorld/MarseyWorld
master
parent
a076e36d5c
commit
ffa4212c87
|
@ -122,7 +122,11 @@ function updateBlackjackTable(state) {
|
||||||
updateResult(`Pushed: Received ${state.wager.amount} ${currency}`, "success");
|
updateResult(`Pushed: Received ${state.wager.amount} ${currency}`, "success");
|
||||||
break;
|
break;
|
||||||
case 'LOST':
|
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;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue