task/CAS-50/add_rest_blackjack_logic_with_frontend_animations #121

Merged
jleibl merged 6 commits from task/CAS-50/add_rest_blackjack_logic_with_frontend_animations into main 2025-04-02 11:09:08 +00:00
Showing only changes of commit 3d7ee92cf2 - Show all commits

View file

@ -10,7 +10,7 @@ import {
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { animate, style, transition, trigger } from '@angular/animations';
import { interval, takeWhile } from 'rxjs';
import { interval, Subscription, takeWhile } from 'rxjs';
@Component({
selector: 'app-debt-dialog',
@ -131,7 +131,7 @@ export class DebtDialogComponent implements OnInit, OnDestroy {
visible = false;
timeLeft = signal(30);
private timerSubscription: any;
private timerSubscription: Subscription | undefined;
private warningSound = new Audio('assets/sounds/warning.mp3');
ngOnInit() {