Skip to content

Commit

Permalink
Merge pull request #32 from PotLock/bug/project-not-found
Browse files Browse the repository at this point in the history
fix project not found
  • Loading branch information
M-Rb3 authored May 5, 2024
2 parents 33f6c44 + 989e962 commit 54742ec
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/pages/Project/Project.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { Social, context, fetch, props, useMemo, useParams, useState } from "alem";
import getProjectByProjectId from "../../services/getProjectByProjectId";
import DonateSDK from "@app/SDK/donate";
import ListsSDK from "@app/SDK/lists";
import PotSDK from "@app/SDK/pot";
import PotFactorySDK from "../../SDK/potfactory";
import { Wrapper } from "./styles";
import getProjectByProjectId from "../../services/getProjectByProjectId";
import Body from "../Profile/components/Body/Body";
import BannerSkeleton from "./components/BannerSkeleton";
import ProjectBanner from "./components/ProjectBanner/ProjectBanner";
import Body from "../Profile/components/Body/Body";
import { Wrapper } from "./styles";
import ProjectOptions from "./utils/ProjectOptions";
import ListsSDK from "@app/SDK/lists";
import PotSDK from "@app/SDK/pot";
import DonateSDK from "@app/SDK/donate";

const ProjectPage = () => {
const { projectId } = useParams();
Expand Down Expand Up @@ -102,9 +102,6 @@ const ProjectPage = () => {
const profile = Social.getr(`${projectId}/profile`);

if (project === null) return <BannerSkeleton />;
if (project == undefined) {
return <div style={{ marginTop: "1rem", fontSize: "1.5rem" }}>Project not found</div>;
}

const { nav } = useParams();

Expand Down

0 comments on commit 54742ec

Please sign in to comment.