Fixed distance achievements
This commit is contained in:
@@ -9,11 +9,7 @@ import ButtonLink from "@/Components/FlightsGoneBy/ButtonLink.vue";
|
||||
import Distance from "@/Components/Distance.vue";
|
||||
import FormattedNumber from "@/Components/FormattedNumber.vue";
|
||||
|
||||
const distanceAchievements = [
|
||||
'general_flying.circumference_of_the_earth',
|
||||
'general_flying.to_the_moon',
|
||||
'general_flying.gigametre'
|
||||
];
|
||||
const distanceAchievementCategoryId = 6
|
||||
|
||||
const props = defineProps<{
|
||||
achievement: Achievement
|
||||
@@ -92,7 +88,7 @@ const unlocked = computed(() => {
|
||||
|
||||
<template v-if="achievement.progressive && progress">
|
||||
<div class="progress-label">
|
||||
<span v-if="distanceAchievements.includes(achievement.internal_name)">
|
||||
<span v-if="achievement.achievement_category_id == distanceAchievementCategoryId">
|
||||
<Distance :unit="distanceUnit" :showUnits="false" :value="Math.min(progress.current, progress.threshold)" /> /
|
||||
<Distance :unit="distanceUnit" :value="progress.threshold" />
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user