🎥 Make videos programmatically with React
use nullish coalescing operator
Jonny Burgerc4c38ad7ef23
diff --git a/packages/core/src/audio/Audio.tsx b/packages/core/src/audio/Audio.tsxindex 9aabb6bc96..f59cefdead 100644--- a/packages/core/src/audio/Audio.tsx+++ b/packages/core/src/audio/Audio.tsx@@ -43,8 +43,8 @@ export const Audio: React.FC<RemotionAudioProps & RemotionMainAudioProps> = (throw new TypeError('endAt prop must be greater than startAt prop');}}- const startAtFrameNo = startAt ? startAt : 0;- const endAtFrameNo = endAt ? endAt : Infinity;+ const startAtFrameNo = startAt ?? 0;+ const endAtFrameNo = endAt ?? Infinity;return (<Sequence from={0 - startAtFrameNo} durationInFrames={endAtFrameNo}><Audio {...otherProps} />