fix: don't show course count on batch details if there are no courses

This commit is contained in:
Jannat Patel
2025-04-19 12:46:31 +05:30
parent eb0587f726
commit f6008cf46a
2 changed files with 10 additions and 4 deletions

View File

@@ -24,7 +24,10 @@
>
{{ formatNumberIntoCurrency(batch.data.amount, batch.data.currency) }}
</div>
<div class="flex items-center mb-3 text-ink-gray-7">
<div
v-if="batch.data.courses.length"
class="flex items-center mb-3 text-ink-gray-7"
>
<BookOpen class="h-4 w-4 stroke-1.5 mr-2" />
<span> {{ batch.data.courses.length }} {{ __('Courses') }} </span>
</div>