diff --git a/src/shared/components/challenge-detail/Specification/SideBar/index.jsx b/src/shared/components/challenge-detail/Specification/SideBar/index.jsx index f62c684c93..2d92451145 100644 --- a/src/shared/components/challenge-detail/Specification/SideBar/index.jsx +++ b/src/shared/components/challenge-detail/Specification/SideBar/index.jsx @@ -348,7 +348,7 @@ SideBar.defaultProps = { environment: '', codeRepo: '', isMM: false, - metadata: [], + metadata: {}, reviewScorecardId: '', screeningScorecardId: '', }; @@ -370,7 +370,7 @@ SideBar.propTypes = { environment: PT.string, codeRepo: PT.string, isMM: PT.bool, - metadata: PT.arrayOf(PT.shape()), + metadata: PT.shape(), reviewScorecardId: PT.string, screeningScorecardId: PT.string, }; diff --git a/src/shared/components/challenge-detail/Specification/index.jsx b/src/shared/components/challenge-detail/Specification/index.jsx index 933ad7d258..52478886e9 100644 --- a/src/shared/components/challenge-detail/Specification/index.jsx +++ b/src/shared/components/challenge-detail/Specification/index.jsx @@ -47,6 +47,7 @@ export default function ChallengeDetailsView(props) { codeRepo, userDetails, metadata, + events, } = challenge; const tags = challenge.tags || []; @@ -410,6 +411,7 @@ export default function ChallengeDetailsView(props) { hasRegistered={hasRegistered} isDesign={track.toLowerCase() === 'design'} isDevelop={track.toLowerCase() === 'develop'} + eventDetail={_.isEmpty(events) ? null : events[0]} isMM={isMM(challenge)} terms={terms} shareable={_.isEmpty(groups)} @@ -436,7 +438,8 @@ ChallengeDetailsView.defaultProps = { finalSubmissionGuidelines: '', environment: '', codeRepo: '', - metadata: [], + metadata: {}, + events: [], reviewScorecardId: '', screeningScorecardId: '', }, @@ -467,7 +470,8 @@ ChallengeDetailsView.propTypes = { userDetails: PT.shape({ roles: PT.arrayOf(PT.string).isRequired, }), - metadata: PT.arrayOf(PT.shape()), + metadata: PT.shape(), + events: PT.arrayOf(PT.string), }), challengesUrl: PT.string.isRequired, communitiesList: PT.arrayOf(PT.shape({