diff --git a/src/components/borrow/Table/useBorrowMarketAssetsTableData.ts b/src/components/borrow/Table/useBorrowMarketAssetsTableData.ts index 7ca53f0f..e786a0c6 100644 --- a/src/components/borrow/Table/useBorrowMarketAssetsTableData.ts +++ b/src/components/borrow/Table/useBorrowMarketAssetsTableData.ts @@ -30,9 +30,12 @@ export default function useBorrowMarketAssetsTableData() { accountDebtAmount: amount, accountDebtValue: value, } - ;(borrowMarketAsset.accountDebtAmount ? accountBorrowedAssets : availableAssets).push( - borrowMarketAsset, - ) + + if (borrowMarketAsset.accountDebtAmount?.isZero()) { + availableAssets.push(borrowMarketAsset) + } else { + accountBorrowedAssets.push(borrowMarketAsset) + } }) return {