mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
Merge pull request #31 from samuelthomas2774/add-tricolour-contribution-result
Add Tricolour Battle result
This commit is contained in:
commit
59381d2eef
|
|
@ -58,7 +58,7 @@ function results(ratioKey, topKey) {
|
|||
}
|
||||
|
||||
const resultRows = computed(() => {
|
||||
return [
|
||||
const rows = [
|
||||
{
|
||||
title: 'Conch Shells',
|
||||
results: results('horagaiRatio', 'isHoragaiRatioTop'),
|
||||
|
|
@ -76,6 +76,15 @@ const resultRows = computed(() => {
|
|||
results: results('challengeContributionRatio', 'isChallengeContributionRatioTop'),
|
||||
},
|
||||
];
|
||||
|
||||
if (props.festival.teams.find(t => t.result.tricolorContributionRatio !== null)) {
|
||||
rows.push({
|
||||
title: 'Tricolor Battle',
|
||||
results: results('tricolorContributionRatio', 'isTricolorContributionRatioTop'),
|
||||
});
|
||||
}
|
||||
|
||||
return rows;
|
||||
});
|
||||
|
||||
const winner = computed(() => props.festival.teams.find(t => t.result.isWinner));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user