diff --git a/src/js/components/splatoon/SplatfestResultsRow.vue b/src/js/components/splatoon/SplatfestResultsRow.vue index b561104..c73461f 100644 --- a/src/js/components/splatoon/SplatfestResultsRow.vue +++ b/src/js/components/splatoon/SplatfestResultsRow.vue @@ -3,8 +3,8 @@
-
-
{{ results.rates[type].alpha }}{{ $t('splatfest.results.%') }}
+
+
{{ results.rates[type].alpha | wholePercent }}.{{ results.rates[type].alpha | partialPercent }}{{ $t('splatfest.results.%') }}
@@ -15,8 +15,8 @@
-
-
{{ results.rates[type].bravo }}{{ $t('splatfest.results.%') }}
+
+
{{ results.rates[type].bravo | wholePercent }}.{{ results.rates[type].bravo | partialPercent }}{{ $t('splatfest.results.%') }}
@@ -36,6 +36,14 @@ export default { return this.resultTitle('bravo'); }, }, + filters: { + wholePercent(value) { + return value.toString().slice(0, -2); + }, + partialPercent(value) { + return value.toString().slice(-2); + }, + }, methods: { resultTitle(team) { if (this.type == 'vote')