From 4783e21477bfc0b88c383239faf3a432df8ba8a6 Mon Sep 17 00:00:00 2001 From: Haelnorr Date: Fri, 6 Mar 2026 21:40:18 +1100 Subject: [PATCH] fixed stat sorting --- internal/view/seasonsview/season_league_stats.templ | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/view/seasonsview/season_league_stats.templ b/internal/view/seasonsview/season_league_stats.templ index 6bc7de1..16fad83 100644 --- a/internal/view/seasonsview/season_league_stats.templ +++ b/internal/view/seasonsview/season_league_stats.templ @@ -25,6 +25,7 @@ templ SeasonLeagueStats( topSaves []*db.LeagueTopSaver, allStats []*db.LeaguePlayerStats, ) { + if len(topGoals) == 0 && len(topAssists) == 0 && len(topSaves) == 0 && len(allStats) == 0 {

No stats available yet.

@@ -57,7 +58,6 @@ templ SeasonLeagueStats( }
} - } templ topGoalScorersTable(season *db.Season, league *db.League, goals []*db.LeagueTopGoalScorer) {