remove duplicated logic

This commit is contained in:
Josh Hawkins 2024-07-05 17:17:05 -05:00
parent 259b584266
commit 2e5aa10514

View File

@ -314,10 +314,7 @@ export function RecordingView({
return undefined; return undefined;
} }
const aspect = const aspect = getCameraAspect(mainCamera);
fullResolution.width && fullResolution.height
? fullResolution.width / fullResolution.height
: camera.detect.width / camera.detect.height;
if (!aspect) { if (!aspect) {
return undefined; return undefined;
@ -345,7 +342,7 @@ export function RecordingView({
mainWidth, mainWidth,
mainHeight, mainHeight,
mainCamera, mainCamera,
fullResolution, getCameraAspect,
]); ]);
const previewRowOverflows = useMemo(() => { const previewRowOverflows = useMemo(() => {