Skip to content

Commit

Permalink
Fix support for long lost FONDO event type
Browse files Browse the repository at this point in the history
ITs.... Back....!!
  • Loading branch information
mayfield committed Dec 21, 2024
1 parent a37a461 commit b63c889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pages/templates/events/summary.html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ms title="Allows joining late">acute</ms>
<% } %>
</td>
<% const prettyType = event.eventType.replace(/_/g, ' ').replace(/GROUP WORKOUT/, 'WORKOUT') %>
<% const prettyType = (typeof event.eventType === 'string') ? event.eventType.replace(/_/g, ' ').replace(/GROUP WORKOUT/, 'WORKOUT') : event.eventType; %>
<td class="type">
<% if (event.sport === 'running') { %>
{{prettyType.replace(/RIDE/, 'RUN')}}
Expand Down
1 change: 1 addition & 0 deletions src/zwift.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,7 @@ message EventTimeTrialOptions {

// Match JSON...
enum EventType {
FONDO = 0;
RACE = 1;
GROUP_RIDE = 2;
GROUP_WORKOUT = 3;
Expand Down

0 comments on commit b63c889

Please sign in to comment.