diff --git a/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/Status.jsx.snap b/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/Status.jsx.snap index ca27cb7281..9e7961ebd1 100644 --- a/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/Status.jsx.snap +++ b/__tests__/shared/components/challenge-listing/ChallengeCard/__snapshots__/Status.jsx.snap @@ -128,7 +128,7 @@ exports[`Matches shallow shapshot shapshot 1 1`] = ` - to register + to go diff --git a/src/shared/components/challenge-detail/RecommendedActiveChallenges/ChallengesCard/index.jsx b/src/shared/components/challenge-detail/RecommendedActiveChallenges/ChallengesCard/index.jsx index 96053c9871..1f148e6afe 100644 --- a/src/shared/components/challenge-detail/RecommendedActiveChallenges/ChallengesCard/index.jsx +++ b/src/shared/components/challenge-detail/RecommendedActiveChallenges/ChallengesCard/index.jsx @@ -106,7 +106,7 @@ export default function ChallengesCard({
- {getTimeLeft(statusPhase, 'to register').text} + {getTimeLeft(statusPhase, 'to go').text}
); diff --git a/src/shared/components/challenge-listing/ChallengeCard/Status/index.jsx b/src/shared/components/challenge-listing/ChallengeCard/Status/index.jsx index 046bedd835..db2a1fc332 100644 --- a/src/shared/components/challenge-listing/ChallengeCard/Status/index.jsx +++ b/src/shared/components/challenge-listing/ChallengeCard/Status/index.jsx @@ -130,7 +130,7 @@ export default function ChallengeStatus(props) { challenge, detailLink, } = props; - const timeDiff = getTimeLeft((challenge.allPhases || challenge.phases || []).find(p => p.name === 'Registration'), 'to register'); + const timeDiff = getTimeLeft((challenge.allPhases || challenge.phases || []).find(p => p.name === 'Registration'), 'to go'); let timeNote = timeDiff.text; /* TODO: This is goofy, makes the trick, but should be improved. The idea * here is that the standard "getTimeLeft" method, for positive times, @@ -150,7 +150,7 @@ export default function ChallengeStatus(props) { {timeNote} - to register + to go ); @@ -278,7 +278,7 @@ export default function ChallengeStatus(props) { isLate={moment().isAfter(statusPhase.scheduledEndDate)} />
- {getTimeLeft(statusPhase, 'to register').text} + {getTimeLeft(statusPhase, 'to go').text}
) :