From 0cc97325c0cd50f17bcbe489412186d863588fb5 Mon Sep 17 00:00:00 2001 From: Sped0n Date: Thu, 2 Nov 2023 12:28:30 +0800 Subject: [PATCH] fix(stage.ts): add error logging to catch block in expandImage() and minimizeImage() functions for better error handling --- assets/ts/desktop/stage.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/ts/desktop/stage.ts b/assets/ts/desktop/stage.ts index eb73eb7..a27597f 100644 --- a/assets/ts/desktop/stage.ts +++ b/assets/ts/desktop/stage.ts @@ -145,9 +145,10 @@ function expandImage(): void { ease: Power3.easeInOut }) // finished - // eslint-disable-next-line @typescript-eslint/no-floating-promises tl.then(() => { isAnimating.set(false) + }).catch((e) => { + console.log(e) }) } @@ -185,9 +186,10 @@ export function minimizeImage(): void { opacity: 1 }) // finished - // eslint-disable-next-line @typescript-eslint/no-floating-promises tl.then(() => { isAnimating.set(false) + }).catch((e) => { + console.log(e) }) }