diff --git a/Frontend-Learner/components/course/CourseCard.vue b/Frontend-Learner/components/course/CourseCard.vue index 0c4b92a0..b26d9ea1 100644 --- a/Frontend-Learner/components/course/CourseCard.vue +++ b/Frontend-Learner/components/course/CourseCard.vue @@ -8,12 +8,12 @@ interface CourseCardProps { id?: number title: string | { th: string; en: string } - category?: string + category?: string | { th: string; en: string } level?: string price?: string description?: string | { th: string; en: string } rating?: string - lessons?: string + lessons?: string | number duration?: string progress?: number completed?: boolean @@ -51,6 +51,7 @@ const getLocalizedText = (text: string | { th: string; en: string } | undefined) const displayTitle = computed(() => getLocalizedText(props.title)) const displayDescription = computed(() => getLocalizedText(props.description)) +const displayCategory = computed(() => getLocalizedText(props.category))