diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx index 8e3184fefda8..2a1f50a1ae58 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx +++ b/src/pages/iou/request/step/IOURequestStepScan/index.native.tsx @@ -50,7 +50,7 @@ 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; diff --git a/src/pages/iou/request/step/IOURequestStepScan/index.tsx b/src/pages/iou/request/step/IOURequestStepScan/index.tsx index e4374057234f..cf4e9ea0c031 100644 --- a/src/pages/iou/request/step/IOURequestStepScan/index.tsx +++ b/src/pages/iou/request/step/IOURequestStepScan/index.tsx @@ -133,10 +133,11 @@ function IOURequestStepScan({ if (!Browser.isMobile() || !isTabActive) { return; } - navigator.permissions.query({ - // @ts-expect-error camera does exist in PermissionName - name: 'camera' - }) + navigator.permissions + .query({ + // @ts-expect-error camera does exist in PermissionName + name: 'camera', + }) .then((permissionState) => { setCameraPermissionState(permissionState.state); if (permissionState.state === 'granted') {