diff --git a/src/Components/ABDM/ABDMRecordsTab.tsx b/src/Components/ABDM/ABDMRecordsTab.tsx
index 7fe38011796..9100f368216 100644
--- a/src/Components/ABDM/ABDMRecordsTab.tsx
+++ b/src/Components/ABDM/ABDMRecordsTab.tsx
@@ -170,6 +170,17 @@ export default function ABDMRecordsTab({ patientId }: IProps) {
;
}
+ if (!data?.results.length) {
+ return (
+
+
No Records found
+
+ Raise a consent request to fetch patient records over ABDM
+
+
+ );
+ }
+
return (
{data?.results.map((record) => {
diff --git a/src/Components/Facility/ConsultationDetails/index.tsx b/src/Components/Facility/ConsultationDetails/index.tsx
index ffcd9166f23..4d393752888 100644
--- a/src/Components/Facility/ConsultationDetails/index.tsx
+++ b/src/Components/Facility/ConsultationDetails/index.tsx
@@ -431,6 +431,11 @@ export const ConsultationDetails = (props: any) => {
)
return null; // Hide feed tab
}
+
+ if (p.text === "ABDM" && !patientData.abha_number) {
+ return null;
+ }
+
return (