Skip to content

Commit d0d6c1a

Browse files
committed
revert renaming
1 parent 4a8ced2 commit d0d6c1a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/templates/track-video.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const Track = ({ pageContext, data }) => {
3030

3131
// cover image for the video, falls back to final placeholder image
3232
// used as a placeholder for showcase
33-
const contributionPlaceholder = coverImage
33+
const contributionsPlaceholder = coverImage
3434
? coverImage.childImageSharp.gatsbyImageData
3535
: videoPlaceHolderImage
3636
? videoPlaceHolderImage.childImageSharp.gatsbyImageData
@@ -43,10 +43,10 @@ const Track = ({ pageContext, data }) => {
4343
// cover image for the track, falls back to video cover image and then to final placeholder image
4444
const trackImage = track.cover
4545
? track.cover.file.childImageSharp.gatsbyImageData
46-
: contributionPlaceholder;
46+
: contributionsPlaceholder;
4747

4848
// cover image for the video, falls back to track cover image
49-
const videoImage = contributionPlaceholder ? contributionPlaceholder : trackImage;
49+
const videoImage = contributionsPlaceholder ? contributionsPlaceholder : trackImage;
5050

5151
const { trackPosition, isTrackPage } = pageContext;
5252

@@ -108,7 +108,7 @@ const Track = ({ pageContext, data }) => {
108108

109109
<PassengerShowcasePanel
110110
contributions={video.showcase}
111-
placeholderImage={contributionPlaceholder}
111+
placeholderImage={contributionsPlaceholder}
112112
headerType={isTrackPage ? 'h3' : 'h2'}
113113
submitButtonState={{
114114
track: video.canonicalTrack?.slug ?? 'challenges',

0 commit comments

Comments
 (0)