Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix(video-editor): wrap blur case in block for lexical scope

Mahdy Ariefd8e4eb919a07
diff --git a/src/components/video-editor/AnnotationOverlay.tsx b/src/components/video-editor/AnnotationOverlay.tsx
index e7bd16e8..ee58b361 100644
--- a/src/components/video-editor/AnnotationOverlay.tsx
+++ b/src/components/video-editor/AnnotationOverlay.tsx
@@ -113,7 +113,7 @@ export function AnnotationOverlay({
</div>
);
- case "blur":
+ case "blur": {
const previewScaleFactor = containerWidth / BASE_PREVIEW_WIDTH;
const blurPx = BLUR_ANNOTATION_STRENGTH * previewScaleFactor;
const blurStyle = `blur(${blurPx}px)`;
@@ -128,6 +128,7 @@ export function AnnotationOverlay({
}}
/>
);
+ }
default:
return null;