Skip to content

Commit

Permalink
fix: use due date
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeeshan Abid committed Sep 19, 2024
1 parent 2454cf5 commit bc877f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/InvoicesPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bc877f8

Please sign in to comment.