diff --git a/src/core/app.jsx b/src/core/app.jsx index 8db1497..f662081 100644 --- a/src/core/app.jsx +++ b/src/core/app.jsx @@ -46,6 +46,10 @@ const App = () => { } }, []); + if (!issuers || !accounts) { + return '...'; + } + return ( diff --git a/src/dashboard/credit-card-bills.jsx b/src/dashboard/credit-card-bills.jsx index 1505fd8..c8fdb5e 100644 --- a/src/dashboard/credit-card-bills.jsx +++ b/src/dashboard/credit-card-bills.jsx @@ -78,6 +78,8 @@ const CreditCardBills = ({ setRoute }) => { { flex: 1, field: 'month', valueFormatter: formatMonth, headerName: 'Month' }, { flex: 1, field: 'transactions', type: 'number', valueFormatter: formatNumber, headerName: 'Transactions' }, { flex: 1, field: 'amount', type: 'number', valueFormatter: formatDecimal, headerName: 'Amount' }, + { flex: 1, field: 'net', type: 'number', valueFormatter: formatDecimal, headerName: 'Net' }, + { flex: 1, field: 'balance', type: 'number', valueFormatter: formatDecimal, headerName: 'Balance' }, ]; const handlePagination = (n) => setPaginationModel(