diff --git a/app/components/OgImage/Package.vue b/app/components/OgImage/Package.vue index c3ee265f73..90cdd513f6 100644 --- a/app/components/OgImage/Package.vue +++ b/app/components/OgImage/Package.vue @@ -53,10 +53,12 @@ const { data: likes, refresh: refreshLikes } = useFetch(() => `/api/social/likes const { stars, refresh: refreshRepoMeta } = useRepoMeta(repositoryUrl) const formattedStars = computed(() => - Intl.NumberFormat('en', { - notation: 'compact', - maximumFractionDigits: 1, - }).format(stars.value), + stars.value > 0 + ? Intl.NumberFormat('en', { + notation: 'compact', + maximumFractionDigits: 1, + }).format(stars.value) + : '', ) try { @@ -75,6 +77,7 @@ try { class="h-full w-full flex flex-col justify-center px-20 bg-[#050505] text-[#fafafa] relative overflow-hidden" >