get goalToken from projectInfo

This commit is contained in:
Barry Gitarts 2019-08-21 17:14:18 -04:00 committed by Barry G
parent 9413459334
commit 01301d09ae
1 changed files with 2 additions and 2 deletions

View File

@ -35,9 +35,9 @@ const addProjectSucessMsg = response => {
const SubmissionSection = ({ classes, projectData, projectId, commitTime, profileData, startPolling }) => {
const { account, enableEthereum, openSnackBar, prices } = useContext(FundingContext)
const { projectAge, projectAssets, manifest } = projectData
const { pledgesInfos } = profileData
const { pledgesInfos, projectInfo } = profileData
const pledgesInfo = pledgesInfos[0]
const tokenLabel = getTokenLabel(pledgesInfo.token)
const tokenLabel = getTokenLabel(projectInfo.goalToken)
const totalPledged = getAmountFromPledgesInfo(pledgesInfo)
const isVideo = useMemo(() => getMediaType(projectAssets), [projectAssets, projectId])
const mediaUrl = useMemo(() => getMediaSrc(projectAssets), [projectAssets, projectId])