From 3d7ee92cf25ca81e96363939d763c2f55c74db23 Mon Sep 17 00:00:00 2001 From: Jan-Marlon Leibl Date: Wed, 2 Apr 2025 13:07:01 +0200 Subject: [PATCH] refactor(debt-dialog): update timerSubscription type to Subscription --- .../shared/components/debt-dialog/debt-dialog.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts b/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts index a57dfe0..dd60fdc 100644 --- a/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts +++ b/frontend/src/app/shared/components/debt-dialog/debt-dialog.component.ts @@ -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() {