Fix syntax and type errors causing app crash

This commit is contained in:
2026-06-01 11:57:13 +02:00
parent 560b24c772
commit 886c654c9e
3 changed files with 3 additions and 24 deletions
+1 -1
View File
@@ -183,7 +183,7 @@ export default function CameraScreen({
return { size: s, pixels: 0, w: 0, h: 0 };
}).filter((s: { pixels: number }) => s.pixels > 0);
parsedSizes.sort((a, b) => a.pixels - b.pixels);
parsedSizes.sort((a: any, b: any) => a.pixels - b.pixels);
// Find the LARGEST size available to satisfy user request for original size
const optimal = parsedSizes[parsedSizes.length - 1];