Skip to content

Commit

Permalink
Fix action clicks on docotor connect slideover (#7625)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 authored Apr 16, 2024
1 parent f3109ec commit 833100b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/Components/Facility/DoctorVideoSlideover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,12 @@ function UserListItem(props: { user: UserAssignedModel; facilityId: string }) {
<a
role="button"
href="#"
onClick={async () =>
onClick={async (e) => {
e.stopPropagation();
await navigator.clipboard.writeText(
user?.alt_phone_number || "",
)
}
);
}}
>
<span className="tooltip">
<span className="tooltip-text tooltip-top">
Expand Down Expand Up @@ -280,7 +281,8 @@ function DoctorConnectButtons(props: {
{user.video_connect_link && (
<a
href={user.video_connect_link}
onClick={() => {
onClick={(e) => {
e.stopPropagation();
triggerGoal("Doctor Connect Click", {
medium: "Video Call",
userId: authUser.id,
Expand All @@ -306,7 +308,8 @@ function DoctorConnectButtons(props: {
</a>
<a
href={user.alt_phone_number ? `tel:${user.alt_phone_number}` : "#"}
onClick={() => {
onClick={(e) => {
e.stopPropagation();
triggerGoal("Doctor Connect Click", {
medium: "Phone Call",
userId: authUser.id,
Expand Down

0 comments on commit 833100b

Please sign in to comment.