Skip to content

Commit

Permalink
[Gitar] Cleaning up Tsx files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gitar Bot committed May 17, 2024
1 parent b675287 commit d0f886d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions packages/front-end/components/Layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,8 @@ const navlinks: SidebarLinkProps[] = [
name: "GitHub",
href: "/integrations/github",
path: /^integrations\/github/,
filter: ({ permissions, gb }) =>
permissions.check("manageIntegrations") &&
!!gb?.isOn("github-integration"),
filter: ({ permissions }) =>
permissions.check("manageIntegrations"),
},
{
name: "Import your data",
Expand Down
2 changes: 1 addition & 1 deletion packages/front-end/pages/integrations/github/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const GitHubIntegrationPage: NextPage = () => {
const code = router.query.code as string;
const growthbook = useGrowthBook<AppFeatures>();

if (!growthbook || growthbook.isOff("github-integration")) {
if (!growthbook) {
router.replace("/404");
}

Expand Down

0 comments on commit d0f886d

Please sign in to comment.