From 83b13505cc3a8978a0a7f951084fc8cadd75c061 Mon Sep 17 00:00:00 2001 From: Vidya Hanumant Khandekar Date: Mon, 2 Dec 2024 15:41:48 +0530 Subject: [PATCH] Preview application (#52) * Preview Application Details * Fix-Sonar issue * removed console log --- src/screens/application/Preview.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/screens/application/Preview.tsx b/src/screens/application/Preview.tsx index 45b2585..7760c00 100644 --- a/src/screens/application/Preview.tsx +++ b/src/screens/application/Preview.tsx @@ -66,7 +66,7 @@ const Preview: React.FC = () => { } const documents = await getDocumentsList(); const result = await getApplicationDetails(id); - console.log("in preview", result?.data); + setStatus(result?.data?.status); const doc = getSubmmitedDoc( result?.data?.application_data, @@ -75,11 +75,10 @@ const Preview: React.FC = () => { setBenefitName(result?.data?.external_application_id); const data = getPreviewDetails(result?.data?.application_data, doc); setUserData(data); - console.log(data, "data"); + setDocument(doc); } catch (error) { console.error("Error fetching application details:", error); - console.log("error", error); toast({ title: "Error", @@ -96,8 +95,6 @@ const Preview: React.FC = () => { init(); }, [id]); - console.log("docuyments", document); - return (