Skip to content

Commit

Permalink
database: locale formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelharlow committed Nov 13, 2024
1 parent 58bbe92 commit 0fb28a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/src/routes/AdminTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ function AdminTable() {
<TableRow key={loan.id} onClick={() => {navigate(`/account/${loan.account?.id}`)}} className={"cursor-pointer"}>
<TableCell>{loan.account?.email}</TableCell>
<TableCell>{date.getMonth() + "/" + date.getDay() + "/" + date.getFullYear()}</TableCell>
<TableCell>{"$" + loan.originAmount.toFixed(2)}</TableCell>
<TableCell>{"$" + loan.currentAmount.toFixed(2)}</TableCell>
<TableCell>{loan.interestRate.toFixed(2)}</TableCell>
<TableCell>{loan.originAmount.toLocaleString(undefined, {style: "currency", currency: "USD"})}</TableCell>
<TableCell>{loan.currentAmount.toLocaleString(undefined, {style: "currency", currency: "USD"})}</TableCell>
<TableCell>{loan.interestRate.toFixed(2) + "%"}</TableCell>
</TableRow>
)
})}
Expand Down

0 comments on commit 0fb28a3

Please sign in to comment.