From d84d93ad3bcd1e316430126ffbeb5f4f35664f7c Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Sat, 11 Sep 2021 23:41:56 -0400 Subject: [PATCH] Blackjack record loss --- src/Casino/Blackjack.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Casino/Blackjack.tsx b/src/Casino/Blackjack.tsx index c89cfab5e..2dfa75294 100644 --- a/src/Casino/Blackjack.tsx +++ b/src/Casino/Blackjack.tsx @@ -223,6 +223,7 @@ export class Blackjack extends Game { this.win(this.props.p, 2 * gains); } else if (result === Result.DealerWon) { gains = -1 * this.state.bet; + this.win(this.props.p, -this.state.bet); // Get the original bet back // Dont need to take money here since we already did it at the start } else if (result === Result.Tie) { this.win(this.props.p, this.state.bet); // Get the original bet back