diff --git a/src/components/MainCointainer.jsx b/src/components/MainCointainer.jsx index 33fd552..720f8eb 100644 --- a/src/components/MainCointainer.jsx +++ b/src/components/MainCointainer.jsx @@ -188,10 +188,10 @@ class PersistentDrawerLeft extends React.Component { } /> - + } /> } /> - + {this.props.children} diff --git a/src/components/projects/Project.jsx b/src/components/projects/Project.jsx index a5c480b..9bcca57 100644 --- a/src/components/projects/Project.jsx +++ b/src/components/projects/Project.jsx @@ -183,6 +183,7 @@ const getAvatarSrc = assets => { function Project({ classes, match, profile, transfers, pledges, projectAddedEvents }) { const projectId = match.params.id + const urlName = match.params[0] const { projectAge, projectAssets, manifest } = useProjectData(projectId, projectAddedEvents) const amountsPledged = useMemo(() => getAmountsPledged(pledges), [pledges, projectId]) @@ -195,7 +196,8 @@ function Project({ classes, match, profile, transfers, pledges, projectAddedEven (Number(totalPledged) / Number(manifest.goal)) * 100, 100 ) : 0 - console.log({profile, projectAssets, mediaUrl, mediaType, amountsPledged, pledges, transfers}) + const profileType = profile[0] ? profile[0].type : urlName + console.log({profile, projectAssets, mediaUrl, mediaType, amountsPledged, pledges, transfers, match}) return ( {!projectAssets && } {projectAssets &&
@@ -247,8 +249,7 @@ function Project({ classes, match, profile, transfers, pledges, projectAddedEven
- +