From a7ae0996eb31c26b42c3db4666f0c850d9b1d3fa Mon Sep 17 00:00:00 2001 From: waterplea Date: Thu, 25 Jan 2024 17:04:37 +0400 Subject: [PATCH] chore: fix tests --- projects/core/utils/miscellaneous/to-animation-options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/core/utils/miscellaneous/to-animation-options.ts b/projects/core/utils/miscellaneous/to-animation-options.ts index af587248c83d8..cc0f046b89206 100644 --- a/projects/core/utils/miscellaneous/to-animation-options.ts +++ b/projects/core/utils/miscellaneous/to-animation-options.ts @@ -12,5 +12,5 @@ export function tuiToAnimationOptions(speed: number): TuiAnimationOptions { } export function tuiGetDuration(speed: number): number { - return TUI_ANIMATIONS_DEFAULT_DURATION / speed || 0; + return speed && TUI_ANIMATIONS_DEFAULT_DURATION / speed; }