From 220ebfca296da193000133a00f313fcc5003a716 Mon Sep 17 00:00:00 2001 From: Abhishek Gaddi <110591073+AbhiGaddi@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:34:14 +0530 Subject: [PATCH] Fix : Handled if provider is undefined --- src/pages/Preauth/PreauthList.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/Preauth/PreauthList.tsx b/src/pages/Preauth/PreauthList.tsx index db5a2a7..7db6117 100644 --- a/src/pages/Preauth/PreauthList.tsx +++ b/src/pages/Preauth/PreauthList.tsx @@ -106,6 +106,7 @@ const PreauthList:React.FC = ({claimType}:claimProps) => { if (typeof value === "string") { value = parseFloat((value as any).split(" ")[1]); } + console.log(currency) return currency + " " + value; } @@ -154,11 +155,11 @@ const PreauthList:React.FC = ({claimType}:claimProps) => { request_id: claim.request_id, request_no: identifier?.value, name: resources.patient.name ? resources.patient.name[0].text : "Unnamed", - gender: resources.patient.gender, + gender: resources.patient ? resources.patient.gender : "NA", sub_type : resources.claim.subType !== undefined ? resources.claim.subType.coding[0].code : "Others", items, - address: resources.patient.address, - provider: resources.claim.provider.name, + address: resources.patient ? resources.patient.address : "NA", + provider: resources.claim.provider ? resources.claim.provider.name : "NA", diagnosis: diagnosis, insurance_no, requested_amount,