From c411edb7c160c55e94fddf62fd60fa1e166351c0 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 6 Apr 2026 12:59:07 +0200 Subject: fix: clean up --- apps/web/src/lib/animation/keyframes.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/web/src/lib/animation/keyframes.ts') diff --git a/apps/web/src/lib/animation/keyframes.ts b/apps/web/src/lib/animation/keyframes.ts index 7eaa5ed6..d72f9e16 100644 --- a/apps/web/src/lib/animation/keyframes.ts +++ b/apps/web/src/lib/animation/keyframes.ts @@ -440,9 +440,9 @@ export function upsertPathKeyframe({ keyframeId?: string; kind: AnimationBindingKind; defaultInterpolation: AnimationInterpolation; - coerceValue: (value: AnimationValue) => AnimationValue | null; + coerceValue: ({ value }: { value: AnimationValue }) => AnimationValue | null; }): ElementAnimations | undefined { - const coercedValue = coerceValue(value); + const coercedValue = coerceValue({ value }); if (coercedValue === null) { return animations; } @@ -547,7 +547,7 @@ export function upsertElementKeyframe({ keyframeId, kind: propertyDefinition.kind, defaultInterpolation: propertyDefinition.defaultInterpolation, - coerceValue: (nextValue) => + coerceValue: ({ value: nextValue }) => coerceAnimationValueForProperty({ propertyPath, value: nextValue, -- cgit v1.3.1