Skip to content

Commit

Permalink
fix check for view patient (ohcnetwork#9671)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Jan 2, 2025
1 parent 7b9b70f commit 328fedc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,12 @@ const AppointmentActions = ({

return (
<div className="flex flex-col gap-2 w-64 mx-auto">
<Button variant="outline" onClick={onViewPatient} size="lg">
<PersonIcon className="size-4 mr-2" />
{t("view_patient")}
</Button>
{currentStatus === "booked" && (
<>
<Button variant="outline" onClick={onViewPatient} size="lg">
<PersonIcon className="size-4 mr-2" />
{t("view_patient")}
</Button>
<Button
disabled={!isToday}
variant="outline_primary"
Expand Down

0 comments on commit 328fedc

Please sign in to comment.