Skip to content

Commit bd393a4

Browse files
authored
Update data.ts (#994)
1 parent b9c5ac3 commit bd393a4

File tree

1 file changed

+2
-2
lines changed
  • dashboard/starter-example/app/lib

1 file changed

+2
-2
lines changed

dashboard/starter-example/app/lib/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ export async function fetchCardData() {
6868
invoiceStatusPromise,
6969
]);
7070

71-
const numberOfInvoices = Number(data[0].count ?? '0');
72-
const numberOfCustomers = Number(data[1].count ?? '0');
71+
const numberOfInvoices = Number(data[0][0].count ?? '0');
72+
const numberOfCustomers = Number(data[1][0].count ?? '0');
7373
const totalPaidInvoices = formatCurrency(data[2][0].paid ?? '0');
7474
const totalPendingInvoices = formatCurrency(data[2][0].pending ?? '0');
7575

0 commit comments

Comments
 (0)