Skip to content

🎥 Make videos programmatically with React

Update LightLeak.tsx

JonnyBurgere8cde14daf6b
diff --git a/packages/light-leaks/src/LightLeak.tsx b/packages/light-leaks/src/LightLeak.tsx
index a7d47c6ddd..52da192f68 100644
--- a/packages/light-leaks/src/LightLeak.tsx
+++ b/packages/light-leaks/src/LightLeak.tsx
@@ -261,7 +261,7 @@ export const LightLeak: React.FC<LightLeakProps> = ({
style,
...sequenceProps
}) => {
- const opacityProp = typeof style?.opacity === 'number' ? style.opacity : 1;
+ const opacityProp = style?.opacity ?? 1;
const schemaInput = useMemo(() => {
return {