refactor(blackjack): remove unnecessary comments and clean code
This commit is contained in:
parent
deac128935
commit
349e4ce1ec
4 changed files with 0 additions and 9 deletions
|
@ -43,7 +43,6 @@ export default class BlackjackComponent {
|
|||
gameState = signal<string>('IN_PROGRESS');
|
||||
showGameResult = signal(false);
|
||||
|
||||
// Add loading state trackers
|
||||
isActionInProgress = signal(false);
|
||||
currentAction = signal<string>('');
|
||||
|
||||
|
@ -64,7 +63,6 @@ export default class BlackjackComponent {
|
|||
this.gameInProgress.set(game.state === 'IN_PROGRESS');
|
||||
this.gameState.set(game.state);
|
||||
|
||||
// When game ends, make sure all dealer cards are visible
|
||||
const isGameOver = game.state !== 'IN_PROGRESS';
|
||||
|
||||
this.dealerCards.set(
|
||||
|
@ -81,12 +79,10 @@ export default class BlackjackComponent {
|
|||
}))
|
||||
);
|
||||
|
||||
// Only refresh and show game result if the game has ended
|
||||
if (isGameOver) {
|
||||
console.log('Game is over, state:', game.state);
|
||||
this.refreshUserBalance();
|
||||
|
||||
// Show result immediately without resetting first
|
||||
this.showGameResult.set(true);
|
||||
console.log('Game result dialog should be shown now');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue