Skip to content

A self-hosted media server and file management system

fix: completion count is 0 even if progress percentage is visually 100

aminnausin7485aa675b02
diff --git a/resources/js/components/cards/data/VideoCard.vue b/resources/js/components/cards/data/VideoCard.vue
index 4ab212e2..83f64d3f 100644
--- a/resources/js/components/cards/data/VideoCard.vue
+++ b/resources/js/components/cards/data/VideoCard.vue
@@ -129,7 +129,7 @@ const dateInformation = computed(() => getMediaDateDescription(videoData));
<HoverCard
class="xs:block hidden"
v-if="videoData.progress_percentage === 100"
- :content-title="`Completed ${videoData.completion_count} time${toPlural(videoData.completion_count)}`"
+ :content-title="`Completed ${videoData.completion_count || 1} time${toPlural(videoData.completion_count || 1)}`"
:hover-card-delay="400"
:hover-card-leave-delay="300"
>