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; }