From 37e0f2bcef35fa1f8270daf18c64e47391b43205 Mon Sep 17 00:00:00 2001 From: Zeeshan Abid Date: Fri, 19 Jul 2024 10:34:21 +0100 Subject: [PATCH] fix: invoices due date fix --- src/pages/InvoicesPage.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/InvoicesPage.vue b/src/pages/InvoicesPage.vue index 6f1d23a..0a37a3f 100644 --- a/src/pages/InvoicesPage.vue +++ b/src/pages/InvoicesPage.vue @@ -131,7 +131,7 @@ const invoices = computed(() => { return Array.isArray(rawInvoices) ? rawInvoices.map((invoice) => { const note = JSON.parse(invoice.note); - const expirationDate = note['invoice_due_date'] ? new Date(note['invoice_due_date']) : 'N/A'; + const expirationDate = note['invoice_due_date'] ? new Date(note['invoice_due_date'] * 1_000) : 'N/A'; return { ...invoice, formattedId: `...${invoice.id.substring(invoice.id.length - kVisibleHashLength)}`,