Update data.ts (#994)

This commit is contained in:
Roy Shani
2025-02-05 03:36:16 +02:00
committed by GitHub
parent b9c5ac3ed6
commit bd393a4c60

View File

@@ -68,8 +68,8 @@ export async function fetchCardData() {
invoiceStatusPromise,
]);
const numberOfInvoices = Number(data[0].count ?? '0');
const numberOfCustomers = Number(data[1].count ?? '0');
const numberOfInvoices = Number(data[0][0].count ?? '0');
const numberOfCustomers = Number(data[1][0].count ?? '0');
const totalPaidInvoices = formatCurrency(data[2][0].paid ?? '0');
const totalPendingInvoices = formatCurrency(data[2][0].pending ?? '0');