From d12abf0bee47b239d7ee69c1cbf6cb927344ace0 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Sat, 17 Feb 2024 07:46:42 +0300 Subject: [PATCH] perf: add async --- src/components/notification/notification.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/notification/notification.component.ts b/src/components/notification/notification.component.ts index d74d56b..45aaed5 100644 --- a/src/components/notification/notification.component.ts +++ b/src/components/notification/notification.component.ts @@ -37,7 +37,7 @@ export class NotificationComponent { private startProgress(duration: number): void { const interval: number = duration / 100; - const progressInterval = setInterval(() => { + const progressInterval = setInterval(async () => { this.progress--; if (this.progress === 0) { clearInterval(progressInterval);