Update FormatFilter.ts

This commit is contained in:
Marc Rousavy 2021-02-22 09:21:54 +01:00
parent 93ec6a49b0
commit a6a465881a

View File

@ -21,8 +21,8 @@ export const sortDevices = (left: CameraDevice, right: CameraDevice): number =>
if (leftHasWideAngle) leftPoints += 5; if (leftHasWideAngle) leftPoints += 5;
if (rightHasWideAngle) rightPoints += 5; if (rightHasWideAngle) rightPoints += 5;
if (left.devices.length > right.devices.length) leftPoints += 3; if (left.devices.length > right.devices.length) leftPoints += 2;
if (right.devices.length > left.devices.length) rightPoints += 3; if (right.devices.length > left.devices.length) rightPoints += 2;
return rightPoints - leftPoints; return rightPoints - leftPoints;
}; };