From cb6faef64723652f5088cb801f08526986cab012 Mon Sep 17 00:00:00 2001 From: Matt Isenhower Date: Tue, 30 Jan 2018 16:50:18 -0800 Subject: [PATCH] Fix issues with missing Splatfest vote/win numbers Unfortunately, Nintendo has removed this data from SplatNet. I'm leaving this in here for now though in case it comes back. --- src/js/components/splatoon/SplatfestResultsRow.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/splatoon/SplatfestResultsRow.vue b/src/js/components/splatoon/SplatfestResultsRow.vue index 71d79b6..b561104 100644 --- a/src/js/components/splatoon/SplatfestResultsRow.vue +++ b/src/js/components/splatoon/SplatfestResultsRow.vue @@ -39,8 +39,8 @@ export default { methods: { resultTitle(team) { if (this.type == 'vote') - return this.results.team_participants[team]; - return this.results.team_scores[`${team}_${this.type}`]; + return this.results.team_participants && this.results.team_participants[team]; + return this.results.team_scores && this.results.team_scores[`${team}_${this.type}`]; }, }, }