Skip to content

Commit

Permalink
Fix post-merge issues
Browse files Browse the repository at this point in the history
  • Loading branch information
carina-akaia committed Jun 3, 2024
1 parent e2af1e2 commit f8a0619
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/_store/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import { navModel, usersModel } from "@/modules/profile/models";

export interface RootModel extends Models<RootModel> {
auth: typeof auth;
user: typeof usersModel;
users: typeof usersModel;
nav: typeof navModel;
}

export const models: RootModel = { auth, user: usersModel, nav: navModel };
export const models: RootModel = { auth, users: usersModel, nav: navModel };
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function Home() {
<Hero />
<DonationStats />
<FeaturedProjects />
{/* <AllProjects /> */}
<AllProjects />
</main>
);
}
2 changes: 1 addition & 1 deletion src/modules/profile/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { dispatch, useTypedSelector } from "@/app/_store";
import { DEFAULT_USER } from "../constants";

export const useUser = (projectId: string) =>
useTypedSelector((state) => state.user[projectId] || DEFAULT_USER);
useTypedSelector((state) => state.users[projectId] || DEFAULT_USER);

export const toggleDao = (toggle: boolean) =>
dispatch.nav.update({
Expand Down

0 comments on commit f8a0619

Please sign in to comment.