tidy: streamline borrow

This commit is contained in:
Linkie Link 2024-02-14 11:14:40 +01:00
parent 75edb21c02
commit 34db8aea1a
No known key found for this signature in database
GPG Key ID: 5318B0F2564D38EA

View File

@ -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 {