Skip to content

Commit

Permalink
removed duplicatie organization hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaryan1203 committed Oct 3, 2024
1 parent 3d66999 commit ec3ffce
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/frontend/src/hooks/organizations.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ export const useProvideOrganization = (): OrganizationProvider => {
};
};

export const useCurrentOrganization = () => {
return useQuery<Organization, Error>(['organizations'], async () => {
const { data } = await getCurrentOrganization();
return data;
});
};

// Hook for child components to get the auth object
export const useOrganization = () => {
const context = useContext(OrganizationContext);
Expand Down

0 comments on commit ec3ffce

Please sign in to comment.