diff --git a/src/Components/Medicine/MedicineAdministrationSheet/index.tsx b/src/Components/Medicine/MedicineAdministrationSheet/index.tsx index 187d5447314..6a187f1f998 100644 --- a/src/Components/Medicine/MedicineAdministrationSheet/index.tsx +++ b/src/Components/Medicine/MedicineAdministrationSheet/index.tsx @@ -97,31 +97,35 @@ const MedicineAdministrationSheet = ({ readonly, is_prn }: Props) => { ) } /> - - - Scroll to view more prescriptions - - - } - disableOverlay={loading || !prescriptions?.length} - > - {loading && } - {prescriptions?.length === 0 && } - - {!!prescriptions?.length && ( - { - refetch(); - discontinuedPrescriptions.refetch(); - }} - /> - )} - +
+ + Scroll to view more prescriptions + +
+ } + disableOverlay={ + loading || !prescriptions?.length || !(prescriptions?.length > 1) + } + > + {loading && } + {prescriptions?.length === 0 && } + + {!!prescriptions?.length && ( + { + refetch(); + discontinuedPrescriptions.refetch(); + }} + /> + )} +
{!showDiscontinued && !!discontinuedCount && ( { )} - + ); };