diff --git a/src/components/Account/FundAccount.tsx b/src/components/Account/FundAccount.tsx index 7de6a3f7..a6878545 100644 --- a/src/components/Account/FundAccount.tsx +++ b/src/components/Account/FundAccount.tsx @@ -74,6 +74,7 @@ export default function FundAccount(props: Props) { className='h-8 w-8' iconClassName='h-2 w-2' color='tertiary' + size='xs' />
diff --git a/src/components/Earn/Lend/LendingMarketsTable.tsx b/src/components/Earn/Lend/LendingMarketsTable.tsx index f6dbfe92..8245066c 100644 --- a/src/components/Earn/Lend/LendingMarketsTable.tsx +++ b/src/components/Earn/Lend/LendingMarketsTable.tsx @@ -1,12 +1,11 @@ import { ColumnDef, Row, Table } from '@tanstack/react-table' -import classNames from 'classnames' import Image from 'next/image' import { useMemo } from 'react' import LendingActionButtons from 'components/Earn/Lend/LendingActionButtons' import LendingDetails from 'components/Earn/Lend/LendingDetails' import { FormattedNumber } from 'components/FormattedNumber' -import { ChevronDown, ChevronRight } from 'components/Icons' +import { ChevronDown, ChevronUp } from 'components/Icons' import AssetListTable from 'components/MarketAssetTable' import MarketAssetTableRow from 'components/MarketAssetTable/MarketAssetTableRow' import Text from 'components/Text' @@ -118,9 +117,7 @@ function LendingMarketsTable(props: Props) { header: 'Manage', cell: ({ row }) => (
-
- {row.getIsExpanded() ? : } -
+
{row.getIsExpanded() ? : }
), }, diff --git a/src/utils/accounts.ts b/src/utils/accounts.ts index 65063729..3b142f12 100644 --- a/src/utils/accounts.ts +++ b/src/utils/accounts.ts @@ -31,7 +31,8 @@ export const calculateAccountDebt = ( if (!account.debts) return BN(0) return account.debts.reduce((acc, debt) => { const price = prices.find((price) => price.denom === debt.denom)?.amount ?? 0 - const debtValue = debt.amount.multipliedBy(price) + const debtAmount = BN(debt.amount) + const debtValue = debtAmount.multipliedBy(price) return acc.plus(debtValue) }, BN(0)) }