Skip to content

Commit

Permalink
Add net and balance fields in credit card statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ystxn committed Dec 10, 2024
1 parent fc6ad5b commit 437edf2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const App = () => {
}
}, []);

if (!issuers || !accounts) {
return '...';
}

return (
<Root>
<NavBar />
Expand Down
2 changes: 2 additions & 0 deletions src/dashboard/credit-card-bills.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 437edf2

Please sign in to comment.