tidy: streamline borrow
This commit is contained in:
parent
75edb21c02
commit
34db8aea1a
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user