From 8b646d3705a0836432b917d20355e9f48dede4dc Mon Sep 17 00:00:00 2001 From: Pranshu1902 Date: Wed, 27 Dec 2023 13:45:49 +0530 Subject: [PATCH] refactor --- src/Components/Facility/Consultations/LiveFeed.tsx | 4 ++-- src/Components/Patient/PatientPrivacyToggle.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Components/Facility/Consultations/LiveFeed.tsx b/src/Components/Facility/Consultations/LiveFeed.tsx index 3611b0d78ec..b6c1536ba79 100644 --- a/src/Components/Facility/Consultations/LiveFeed.tsx +++ b/src/Components/Facility/Consultations/LiveFeed.tsx @@ -302,13 +302,13 @@ const LiveFeed = (props: any) => { setLoading("Previewing Boundary"); const { max_x, max_y, min_x, min_y }: BoundaryRange = boundaryPreset.meta.range; - const edegs: any[] = [ + const edges: any[] = [ { x: max_x, y: (max_y + min_y) / 2, zoom: 0.2 }, { x: (max_x + min_x) / 2, y: max_y, zoom: 0.2 }, { x: min_x, y: (max_y + min_y) / 2, zoom: 0.2 }, { x: (max_x + min_x) / 2, y: min_y, zoom: 0.2 }, ]; - for (const edge of edegs) { + for (const edge of edges) { await runFunctionWithDelay(() => absoluteMove(edge, {}), 3000); } setIsPreview(false); diff --git a/src/Components/Patient/PatientPrivacyToggle.tsx b/src/Components/Patient/PatientPrivacyToggle.tsx index 2037d94155d..40cf427253d 100644 --- a/src/Components/Patient/PatientPrivacyToggle.tsx +++ b/src/Components/Patient/PatientPrivacyToggle.tsx @@ -124,7 +124,7 @@ export default function PatientPrivacyToggle(props: PatientPrivacyToggleProps) {
Privacy Mode: {privacy ? "ON" : "OFF"} - privacy setting for camera feed visual + Privacy setting for camera feed visual
{!privacy ? (