From 366f2f3690dd95049a5058c72b1b5bf9f8e2ca86 Mon Sep 17 00:00:00 2001 From: Luke Policinski Date: Sat, 19 Sep 2026 16:30:23 -0400 Subject: [PATCH] bug: match cards show [0:0] instead of T/CT round wins The total map score was correct, but the per-side split only counted TERRORIST and assumed rounds arrived newest-first, so live rows that send T or omit sides stayed at zero. Co-authored-by: Cursor --- components/match/MatchLineupScoreDisplay.vue | 38 ++--- tests/utilities/matchSideWins.spec.ts | 128 +++++++++++++++ utilities/matchSideWins.ts | 163 +++++++++++++++++++ 3 files changed, 303 insertions(+), 26 deletions(-) create mode 100644 tests/utilities/matchSideWins.spec.ts create mode 100644 utilities/matchSideWins.ts diff --git a/components/match/MatchLineupScoreDisplay.vue b/components/match/MatchLineupScoreDisplay.vue index aaaf8da2e..cbe67ae61 100644 --- a/components/match/MatchLineupScoreDisplay.vue +++ b/components/match/MatchLineupScoreDisplay.vue @@ -22,7 +22,7 @@ - + [{{ tWins }}:{{ ctWins }}] @@ -31,7 +31,7 @@