Skip to content

Commit

Permalink
fix: invoices due date fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeeshan Abid committed Jul 19, 2024
1 parent 935dc94 commit 37e0f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/InvoicesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)}`,
Expand Down

0 comments on commit 37e0f2b

Please sign in to comment.