Skip to content

Commit

Permalink
Fix admin access to volunteer linked facilities
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Dec 17, 2024
1 parent 94430d8 commit ccb0244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Users/LinkedFacilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default function LinkedFacilities({
)}
</div>
<DropdownMenuTrigger
disabled={userData.user_type == "Volunteer"}
disabled={authUser.user_type == "Volunteer"}
id="linked-facility-settings"
>
<div className="flex items-center justify-center rounded-r bg-secondary-300 px-2 min-h-16">
Expand Down Expand Up @@ -277,7 +277,7 @@ export default function LinkedFacilities({
onClick={() =>
handleOnClick("clear_home_facility", homeFacility)
}
disabled={userData.user_type == "Volunteer"}
disabled={authUser.user_type == "Volunteer"}
title={t("clear_home_facility")}
aria-label={t("clear_home_facility")}
>
Expand Down

0 comments on commit ccb0244

Please sign in to comment.