From bc877f864065157e551d6b7ce12d41aa2229d741 Mon Sep 17 00:00:00 2001 From: Zeeshan Abid Date: Thu, 19 Sep 2024 13:25:26 +0100 Subject: [PATCH] fix: use due date --- src/pages/InvoicesPage.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/InvoicesPage.vue b/src/pages/InvoicesPage.vue index 6b79ed1..36b12c9 100644 --- a/src/pages/InvoicesPage.vue +++ b/src/pages/InvoicesPage.vue @@ -134,8 +134,8 @@ const invoices = computed(() => { ...invoice, formattedId: `...${invoice.id.substring(invoice.id.length - kVisibleHashLength)}`, happ: invoice.happ.name, - formattedExpirationDate: invoice.invoiceDetails.end - ? dayjs(invoice.invoiceDetails.end / 1000).format(kDefaultDateFormat) + formattedExpirationDate: invoice.invoiceDetails.due + ? dayjs(invoice.invoiceDetails.due / 1000).format(kDefaultDateFormat) : '-', amount: Number(invoice.amount), formattedCompletedDate: dayjs(invoice.completedDate / kMsInSecond).format(