Skip to content

Commit

Permalink
[588] fix: annual challenge page (and maybe more resilient for next y…
Browse files Browse the repository at this point in the history
…ear) (#592)
  • Loading branch information
philosowaffle authored Jan 2, 2024
1 parent 639a719 commit 182efb6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Peloton/AnnualChallenge/AnnualChallengeService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public interface IAnnualChallengeService

public class AnnualChallengeService : IAnnualChallengeService
{
private const string AnnualChallengeId = "66863eacd9d04447979d5dba7bf0e766";
private const string AnnualChallengeId = "5101dfaa50d441d682a432acd313c706";

private IPelotonApi _pelotonApi;

Expand All @@ -30,7 +30,7 @@ public async Task<ServiceResult<AnnualChallengeProgress>> GetAnnualChallengeProg
if (joinedChallenges == null || joinedChallenges.Challenges.Length <= 0)
return result;

var annualChallenge = joinedChallenges.Challenges.FirstOrDefault(c => c.Challenge_Summary.Id == AnnualChallengeId || c.Challenge_Summary.Title == "The Annual 2023");
var annualChallenge = joinedChallenges.Challenges.FirstOrDefault(c => c.Challenge_Summary.Id == AnnualChallengeId || c.Challenge_Summary.Title.StartsWith("The Annual"));
if (annualChallenge is null)
return result;

Expand Down
2 changes: 1 addition & 1 deletion src/SharedUI/Pages/AnnualChallengeProgress.razor
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

@if (!loading && !annualProgress.Tiers.Any())
{
<HxAlert Color="ThemeColor.Primary">Looks like you haven't signed up for the Peloton Annual 2023 Challenge yet. Join the challenge on Peloton then check back here!</HxAlert>
<HxAlert Color="ThemeColor.Primary">Looks like you haven't signed up for the Peloton Annual Challenge yet. <a href="https://members.onepeloton.com/challenges/active">Join the challenge on Peloton</a> then check back here!</HxAlert>
}
</div>

Expand Down
1 change: 1 addition & 0 deletions vNextReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- [#581] Fix broken Documentation link in UI
- [#580] Console Client couldn't load configuration file correctly (introduced by #564)
- [#588] Fix Annual Challenge page still trying to load 2023

## Docs

Expand Down

0 comments on commit 182efb6

Please sign in to comment.