Skip to content

Commit

Permalink
#2725 prettier and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
superhvarn committed Oct 2, 2024
1 parent eac63d3 commit a2b08e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/hooks/organizations.hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const useSetOrganizationImages = () => {
},
{
onSuccess: () => {
queryClient.invalidateQueries(['organization images']);
queryClient.invalidateQueries(['organizations']);
},
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const AdminToolsRecruitmentConfig: React.FC = () => {
};

fetchImages();
}, [currentImages]);
}, [currentImages || imageUrls]);

Check warning on line 50 in src/frontend/src/pages/AdminToolsPage/RecruitmentConfig/AdminToolsRecruitmentConfig.tsx

View workflow job for this annotation

GitHub Actions / run-linting-check

React Hook useEffect has a missing dependency: 'currentImages'. Either include it or remove the dependency array

Check warning on line 50 in src/frontend/src/pages/AdminToolsPage/RecruitmentConfig/AdminToolsRecruitmentConfig.tsx

View workflow job for this annotation

GitHub Actions / run-linting-check

React Hook useEffect has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked

if (organizationIsLoading) return <LoadingIndicator />;
if (organizationIsError) return <ErrorPage message={organizationError.message} />;
Expand All @@ -56,9 +56,9 @@ const AdminToolsRecruitmentConfig: React.FC = () => {
const validFiles: File[] = [];
files.forEach((file) => {
if (file.size < 1000000) {
if (type == 'applyInterest') {
if (type === 'applyInterest') {
validFiles[0] = file;
} else if (type == 'exploreAsGuest') {
} else if (type === 'exploreAsGuest') {
validFiles[1] = file;
}
} else {
Expand Down

0 comments on commit a2b08e7

Please sign in to comment.