Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Oct 9, 2024
1 parent d66f9b3 commit 568c524
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions centrifuge-app/src/components/PoolOverview/KeyMetrics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,10 @@ export const KeyMetrics = ({ poolId }: Props) => {
})
: '-',
},

{
metric: 'Investor type',
value: metadata?.pool?.investorType ? metadata?.pool?.investorType : '-',
},
,
...(!isTinlakePool
? [
{
Expand All @@ -151,7 +149,6 @@ export const KeyMetrics = ({ poolId }: Props) => {
metric: 'Pool structure',
value: metadata?.pool?.poolStructure ? metadata?.pool?.poolStructure : '-',
},
,
...(metadata?.pool?.rating?.ratingValue
? [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export const TransactionHistoryTable = ({

const tableData =
transformedTransactions.slice(0, preview ? 8 : Infinity).map((transaction) => {
const { amount, netFlow } = getLabelAndAmount(transaction)
const { amount, netFlow, label } = getLabelAndAmount(transaction)
return {
activeAssetId,
netFlow,
Expand Down
6 changes: 0 additions & 6 deletions centrifuge-app/src/pages/Loan/TransactionTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,6 @@ export const TransactionTable = ({
})
}, [transactions, maturityDate, pricing, decimals])

const getStatusChipType = (type: AssetTransactionType) => {
if (type === 'BORROWED' || type === 'CREATED' || type === 'PRICED') return 'info'
if (type === 'REPAID') return 'ok'
return 'default'
}

const getStatusText = (type: AssetTransactionType) => {
if (type === 'BORROWED') return 'Financed'
if (type === 'REPAID') return 'Repaid'
Expand Down

0 comments on commit 568c524

Please sign in to comment.