From f6008cf46a25c2c600c6120d0281b9cc6442cb1c Mon Sep 17 00:00:00 2001 From: Jannat Patel Date: Sat, 19 Apr 2025 12:46:31 +0530 Subject: [PATCH] fix: don't show course count on batch details if there are no courses --- frontend/src/components/BatchOverlay.vue | 5 ++++- frontend/src/pages/BatchDetail.vue | 9 ++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/BatchOverlay.vue b/frontend/src/components/BatchOverlay.vue index cf684993..ef2723f9 100644 --- a/frontend/src/components/BatchOverlay.vue +++ b/frontend/src/components/BatchOverlay.vue @@ -24,7 +24,10 @@ > {{ formatNumberIntoCurrency(batch.data.amount, batch.data.currency) }} -
+
{{ batch.data.courses.length }} {{ __('Courses') }}
diff --git a/frontend/src/pages/BatchDetail.vue b/frontend/src/pages/BatchDetail.vue index 4ccd4c33..8e68f1f9 100644 --- a/frontend/src/pages/BatchDetail.vue +++ b/frontend/src/pages/BatchDetail.vue @@ -14,13 +14,16 @@ {{ batch.data.description }}
-
+
{{ batch.data?.courses?.length }} {{ __('Courses') }}
-