Skip to content

Commit

Permalink
Merge branch 'staging' into production
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeno committed Oct 3, 2024
2 parents 6a2aacb + 9589cf2 commit 16b48b3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function HackathonIssuesContextProvider({ children, hackathonId }: THacka
setQueryParams({
search: filters.search || undefined,
languageIds: filters.languageIds.length ? filters.languageIds : undefined,
isAssigned: filters.availability === "all" ? undefined : filters.availability === "available" ? false : true,
isAvailable: filters.availability === "all" ? undefined : filters.availability === "available",
statuses: ["OPEN"],
});
}, [filters]);
Expand Down
5 changes: 5 additions & 0 deletions src/_pages/Callbacks/GithubCallbackHandler.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ function handleNavigation(searchParams: ReturnType<typeof useSearchParams>, rout
} else if (installationId && state) {
const isEdit = state.includes(GithubState.edit);
const isClaim = state.includes(GithubState.claim);
const isGeneric = state.includes(GithubState.generic);
if (isGeneric) {
window.location.href = `${process.env.NEXT_PUBLIC_SAAS_URL}/github-callback`;
return;
}
if (isEdit) {
router.push(
`${NEXT_ROUTER.projects.details.edit(state.replace(GithubState.edit, ""))}?installation_id=${installationId}`
Expand Down
1 change: 1 addition & 0 deletions src/utils/githubSetupLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const OAuthGithubConfigLink = `https://github.com/settings/connections/ap
export const GithubState = {
claim: "claim-state-",
edit: "edit-state-",
generic: "generic-state-",
};
export const GithubSetupLinks = {
alreadyInstalled: (props: { login: string; installationId: number }) =>
Expand Down

0 comments on commit 16b48b3

Please sign in to comment.