Merge pull request 'task/CAS-50/add_rest_blackjack_logic_with_frontend_animations' (!121) from task/CAS-50/add_rest_blackjack_logic_with_frontend_animations into main
All checks were successful
Release / Release (push) Successful in 51s
All checks were successful
Release / Release (push) Successful in 51s
Reviewed-on: #121
This commit is contained in:
commit
a2f1a40931
8 changed files with 232 additions and 21 deletions
|
@ -74,10 +74,6 @@ public class BlackJackService {
|
|||
UserEntity user = getUserWithFreshData(game.getUser());
|
||||
BigDecimal additionalBet = game.getBet();
|
||||
|
||||
if (user.getBalance().compareTo(additionalBet) < 0) {
|
||||
return game;
|
||||
}
|
||||
|
||||
deductBetFromBalance(user, additionalBet);
|
||||
game.setBet(game.getBet().add(additionalBet));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue