diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx index 80291e2bad4a..8e3184fefda8 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx +++ b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx @@ -50,7 +50,8 @@ function IOURequestStepScan({ const camera = useRef(null); const [flash, setFlash] = useState(false); - const [cameraPermissionStatus, setCameraPermissionStatus] = useState(null); + const [cameraPermissionStatus, setCameraPermissionStatus] = useState(null); + // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing const hasFlash = device?.hasFlash || false; const {translate} = useLocalize(); diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.tsx b/src/pages/iou/request/step/IOURequestStepScan/index.tsx index 3b804376661b..e4374057234f 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.tsx +++ b/src/pages/iou/request/step/IOURequestStepScan/index.tsx @@ -133,8 +133,10 @@ function IOURequestStepScan({ if (!Browser.isMobile() || !isTabActive) { return; } - navigator.permissions - .query({name: 'camera'}) + navigator.permissions.query({ + // @ts-expect-error camera does exist in PermissionName + name: 'camera' + }) .then((permissionState) => { setCameraPermissionState(permissionState.state); if (permissionState.state === 'granted') {