Skip to content

Commit

Permalink
Fix correction labels (#2430)
Browse files Browse the repository at this point in the history
  • Loading branch information
hieronx authored Sep 6, 2024
1 parent 52898be commit 855c745
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ export const TransactionHistoryTable = ({

if (transaction.type === 'INCREASE_DEBT') {
return {
label: 'Correction',
label: 'Correction',
amount: transaction.amount,
netFlow: 'positive',
}
}

if (transaction.type === 'DECREASE_DEBT') {
return {
label: 'Correction',
label: 'Correction',
amount: transaction.amount,
netFlow: 'negative',
}
Expand Down
2 changes: 2 additions & 0 deletions centrifuge-app/src/pages/Loan/TransactionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ export const TransactionTable = ({
const getStatusText = (type: AssetTransactionType) => {
if (type === 'BORROWED') return 'Financed'
if (type === 'REPAID') return 'Repaid'
if (type === 'INCREASE_DEBT') return 'Correction ↑'
if (type === 'DECREASE_DEBT') return 'Correction ↓'

return `${type[0]}${type.slice(1).toLowerCase()}`
}
Expand Down

0 comments on commit 855c745

Please sign in to comment.