Skip to content

Commit 2cf917c

Browse files
authored
bug: fix map filtering wwhenin a best of x series (#425)
1 parent cb139f3 commit 2cf917c

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

components/match/LineupAimStats.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export default {
254254
},
255255
statsFor(member: any) {
256256
const arr =
257-
member?.player?.match_map_stats ?? member?.player?.match_stats ?? null;
257+
member?.player?.match_stats ?? member?.player?.match_map_stats ?? null;
258258
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
259259
},
260260
// Per stat: null only if the player has no stats row for this match.

components/match/LineupOverview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const { sortKey, sortDir, toggle, sortRows } = useTableSort<string>(
2121
2222
function statFor(member: any) {
2323
const arr =
24-
member?.player?.match_map_stats ?? member?.player?.match_stats ?? null;
24+
member?.player?.match_stats ?? member?.player?.match_map_stats ?? null;
2525
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
2626
}
2727

components/match/LineupOverviewRow.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,8 @@ export default {
579579
},
580580
stats() {
581581
const arr =
582-
this.member?.player?.match_map_stats ??
583582
this.member?.player?.match_stats ??
583+
this.member?.player?.match_map_stats ??
584584
null;
585585
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
586586
},

components/match/LineupTradeStats.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const { sortKey, sortDir, toggle, sortRows } = useTableSort<string>();
1313
1414
function pickStats(member: any) {
1515
const arr =
16-
member?.player?.match_map_stats ?? member?.player?.match_stats ?? null;
16+
member?.player?.match_stats ?? member?.player?.match_map_stats ?? null;
1717
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
1818
}
1919
@@ -214,7 +214,7 @@ export default {
214214
methods: {
215215
statsFor(member: any) {
216216
const arr =
217-
member?.player?.match_map_stats ?? member?.player?.match_stats ?? null;
217+
member?.player?.match_stats ?? member?.player?.match_map_stats ?? null;
218218
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
219219
},
220220
tradeKillPct(member: any): number | null {

components/match/LineupUtility.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { sortKey, sortDir, toggle, sortRows } = useTableSort<string>();
1414
1515
function pickStats(member: any) {
1616
const arr =
17-
member?.player?.match_map_stats ?? member?.player?.match_stats ?? null;
17+
member?.player?.match_stats ?? member?.player?.match_map_stats ?? null;
1818
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
1919
}
2020
@@ -301,7 +301,7 @@ export default {
301301
formatStatValue,
302302
statsFor(member: any) {
303303
const arr =
304-
member?.player?.match_map_stats ?? member?.player?.match_stats ?? null;
304+
member?.player?.match_stats ?? member?.player?.match_map_stats ?? null;
305305
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
306306
},
307307
// If the player has stats for this match, fall back to 0 instead of

components/match/TeamUtilitySummary.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const props = defineProps<{
77
88
function pickStats(member: any) {
99
const arr =
10-
member?.player?.match_map_stats ?? member?.player?.match_stats ?? null;
10+
member?.player?.match_stats ?? member?.player?.match_map_stats ?? null;
1111
return Array.isArray(arr) && arr.length > 0 ? arr[0] : null;
1212
}
1313

0 commit comments

Comments
 (0)