Skip to content

Commit 5ba41d6

Browse files
authored
fix(vite): show comparison metric only if data is available (#167)
1 parent 69aaa94 commit 5ba41d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/vite/src/app/components/compare/MetricCard.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ const formattedCurrent = computed(() => {
3131
<div v-else>
3232
<span font-semibold text-5 font-mono>{{ formattedCurrent }}</span>
3333
</div>
34-
<DisplayComparisonMetric :current="current" :previous="previous" />
34+
<DisplayComparisonMetric v-if="previous > 0 && current > 0" :current="current" :previous="previous" />
3535
</div>
3636
</template>

0 commit comments

Comments
 (0)