fix: zero excluded count in fallback, drop debug-icon orphan, align ejs guard (#21)

This commit is contained in:
Samuel Enocsson
2026-05-25 09:44:46 +02:00
parent 0beeb98002
commit f2e30c62aa
4 changed files with 3 additions and 9 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ const chartPdgaNumber = hasPlayer ? player.pdgaNumber : pdgaNumber;
<dd><%= player.rating - player.stdDev %><%= player.rating + player.stdDev %></dd>
</div>
<% } %>
<% if (player.excludedRoundsCount != null && player.rating != null) { %>
<% if (player.excludedRoundsCount != null && player.rating) { %>
<div>
<dt>Excluded rounds</dt>
<dd><%= player.excludedRoundsCount %></dd>
+1 -1
View File
@@ -124,7 +124,7 @@ function renderSparkline(values, opts) {
<dd><%= player.rating - player.stdDev %><%= player.rating + player.stdDev %></dd>
</div>
<% } %>
<% if (player.excludedRoundsCount != null && player.rating != null) { %>
<% if (player.excludedRoundsCount != null && player.rating) { %>
<div>
<dt>Excluded rounds</dt>
<dd><%= player.excludedRoundsCount %></dd>