changed the checked value from status to isPublished (#882)

This commit is contained in:
Victor Jack
2026-08-14 11:02:16 +01:00
committed by GitHub
parent 32b8c8748c
commit 0be63fe558
2 changed files with 3 additions and 2 deletions
@@ -53,7 +53,7 @@
description: item.course.description ?? '',
lessonCount: 0,
totalStudents: 0,
isPublished: item.course.status === 'ACTIVE',
isPublished: !!item.course.isPublished,
tags: []
}))
);
@@ -176,7 +176,7 @@
<p>{item.course.description}</p>
</Table.Cell>
<Table.Cell>
<CoursePublishBadge isPublished={item.course.status === 'ACTIVE'} />
<CoursePublishBadge isPublished={!!item.course.isPublished} />
</Table.Cell>
{#if !$isStudentExperience}
<Table.Cell class="text-center">