Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shivankacker committed Sep 20, 2024
1 parent 089d5f8 commit b058330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Utils/featureFlags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ export const useFeatureFlags = (facility?: FacilityModel | string) => {
);
}

const facilityQuery = useQuery(routes.getAnyFacility, {
const facilityQuery = useQuery(routes.getPermittedFacility, {
pathParams: {
id: typeof facility === "string" ? facility : "",
},
prefetch: typeof facility === "string",
prefetch: false,
silent: true,
onResponse: (res) => {
setFacilityObject(res.data);
Expand Down

0 comments on commit b058330

Please sign in to comment.