Fix syntax and type errors causing app crash
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user