We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c5ac3 commit bd393a4Copy full SHA for bd393a4
dashboard/starter-example/app/lib/data.ts
@@ -68,8 +68,8 @@ export async function fetchCardData() {
68
invoiceStatusPromise,
69
]);
70
71
- const numberOfInvoices = Number(data[0].count ?? '0');
72
- const numberOfCustomers = Number(data[1].count ?? '0');
+ const numberOfInvoices = Number(data[0][0].count ?? '0');
+ const numberOfCustomers = Number(data[1][0].count ?? '0');
73
const totalPaidInvoices = formatCurrency(data[2][0].paid ?? '0');
74
const totalPendingInvoices = formatCurrency(data[2][0].pending ?? '0');
75
0 commit comments