From 331db8f36b7b707cc4100a439f84ffdd7dee5442 Mon Sep 17 00:00:00 2001 From: Riya Shete Date: Mon, 1 Apr 2024 04:24:54 +0530 Subject: [PATCH] Fix lint --- .../iou/request/step/IOURequestStepScan/index.native.tsx | 2 +- src/pages/iou/request/step/IOURequestStepScan/index.tsx | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) 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') {