Skip to content

Commit

Permalink
Preview application (#52)
Browse files Browse the repository at this point in the history
* Preview Application Details

* Fix-Sonar issue

* removed console log
  • Loading branch information
vidyaaKhandekar authored Dec 2, 2024
1 parent 6a4f043 commit 83b1350
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/screens/application/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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",
Expand All @@ -96,8 +95,6 @@ const Preview: React.FC = () => {
init();
}, [id]);

console.log("docuyments", document);

return (
<Layout
_heading={{
Expand Down

0 comments on commit 83b1350

Please sign in to comment.