Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
dkildar committed Sep 10, 2024
1 parent d5e2b8b commit 7f23e13
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 22 deletions.
37 changes: 20 additions & 17 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config = {
});

if (process.env.NODE_ENV === "production") {
config.module.plugins.push(
config.plugins.push(
new BugsnagBuildReporterPlugin({
apiKey: "53c03fdd42cd699cb95f60abe77a5b19",
appVersion: appPackage.version
Expand Down
3 changes: 2 additions & 1 deletion public/sw.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/workbox-9b4d2a02.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/app/[...slugs]/_components/community-cover/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function CommunityCover({ community, account }: Props) {
[community.num_authors]
);
const canUpdateCoverImage = useMemo(
() => activeUser && !!users.find((x) => x.username === community.name),
() => activeUser && !!users.find((x: { username: string }) => x.username === community.name),
[activeUser, users, community.name]
);

Expand Down
2 changes: 0 additions & 2 deletions src/core/global-store/initialization/server-init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { createStore } from "zustand";
import { combine } from "zustand/middleware";
import { INITIAL_STATE } from "@/core/global-store/initialization/initial-state";
import { createUiActions } from "@/core/global-store/modules/ui-module";
import { createSubscriptionsActions } from "@/core/global-store/modules/subscriptions-module";
import { createGlobalActions } from "@/core/global-store/modules/global-module";
import { createUsersActions } from "@/core/global-store/modules/users-module";
import { createAuthenticationActions } from "@/core/global-store/modules/authentication-module";
Expand All @@ -11,7 +10,6 @@ import { createNotificationsActions } from "@/core/global-store/modules/notifica

type FINAL_STATE = typeof INITIAL_STATE &
ReturnType<typeof createUiActions> &
ReturnType<typeof createSubscriptionsActions> &
ReturnType<typeof createGlobalActions> &
ReturnType<typeof createUsersActions> &
ReturnType<typeof createAuthenticationActions> &
Expand Down

0 comments on commit 7f23e13

Please sign in to comment.