From f48f4370755452c1d98dabf84c365db5d3048391 Mon Sep 17 00:00:00 2001 From: Hussain Nagaria Date: Tue, 16 Apr 2024 21:24:53 +0530 Subject: [PATCH] fix: handle same start and end dates case for batch * also minor refactor --- frontend/src/components/BatchCard.vue | 9 +++------ frontend/src/components/BatchOverlay.vue | 12 +++++++----- frontend/src/pages/Batch.vue | 8 ++++---- frontend/src/pages/BatchDetail.vue | 21 ++++++++++++--------- frontend/src/utils/index.js | 10 ++++++++++ 5 files changed, 36 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/BatchCard.vue b/frontend/src/components/BatchCard.vue index 071395b5..2e1e080d 100644 --- a/frontend/src/components/BatchCard.vue +++ b/frontend/src/components/BatchCard.vue @@ -34,8 +34,7 @@
- {{ dayjs(batch.start_date).format('DD MMM YYYY') }} - - {{ dayjs(batch.end_date).format('DD MMM YYYY') }} + {{ getFormattedDateRange(batch.start_date, batch.end_date) }}
@@ -48,12 +47,10 @@