Skip to content

Commit

Permalink
chore: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
waterplea committed Jan 25, 2024
1 parent 4067bfe commit a7ae099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/core/utils/miscellaneous/to-animation-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit a7ae099

Please sign in to comment.