Skip to content

Commit

Permalink
Add to table
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx committed Sep 2, 2024
1 parent b861a9f commit db22bef
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions centrifuge-app/src/pages/Loan/TransactionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,14 @@ export const TransactionTable = ({
header: `Principal (${currency})`,
cell: (row: Row) => (row.position ? `${formatBalance(row.position, undefined, 2, 2)}` : '-'),
},
{
align: 'left',
header: `Realized P&L`,
cell: (row: Row) =>
row.realizedProfitFifo
? `${row.type !== 'REPAID' ? '-' : ''}${formatBalance(row.realizedProfitFifo, undefined, 2, 2)}`
: '-',
},
]),
] as Column[]

Expand Down

0 comments on commit db22bef

Please sign in to comment.