Skip to content

Commit

Permalink
Fix conditional logic in PatientInfoCard
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed Dec 30, 2023
1 parent 8aea0cc commit b00f241
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ export default function PatientInfoCard(props: {
key={i}
className="dropdown-item-primary pointer-events-auto m-2 flex cursor-pointer items-center justify-start gap-2 rounded border-0 p-2 text-sm font-normal transition-all duration-200 ease-in-out"
href={
action[1] !== "Treatment Summary" &&
consultation?.admitted &&
!consultation?.current_bed &&
i === 1
Expand All @@ -498,6 +499,7 @@ export default function PatientInfoCard(props: {
}
onClick={() => {
if (
action[1] !== "Treatment Summary" &&
consultation?.admitted &&
!consultation?.current_bed &&
i === 1
Expand Down

0 comments on commit b00f241

Please sign in to comment.