File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,19 @@ import { MarketAssetsListMobileItemLoader } from './MarketAssetsListMobileItemLo
1515const listHeaders = [
1616 {
1717 title : < Trans > Asset</ Trans > ,
18- sortKey : 'underlyingToken.symbol' , // Cambiado de 'symbol'
18+ sortKey : 'underlyingToken.symbol' ,
1919 } ,
2020 {
2121 title : < Trans > Total supplied</ Trans > ,
22- sortKey : 'size.usd' , // Cambiado de 'totalLiquidityUSD'
22+ sortKey : 'size.usd' ,
2323 } ,
2424 {
2525 title : < Trans > Supply APY</ Trans > ,
26- sortKey : 'supplyInfo.apy.value' , // Cambiado de 'supplyAPY'
26+ sortKey : 'supplyInfo.apy.value' ,
2727 } ,
2828 {
2929 title : < Trans > Total borrowed</ Trans > ,
30- sortKey : 'borrowInfo.total.usd' , // Cambiado de 'totalDebtUSD'
30+ sortKey : 'borrowInfo.total.usd' ,
3131 } ,
3232 {
3333 title : (
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export const MarketAssetsListItem = ({ ...reserve }: ReserveWithId) => {
130130 </ ListColumn >
131131
132132 < ListColumn >
133- { reserve . borrowInfo ? (
133+ { reserve . borrowInfo && Number ( reserve . borrowInfo . total . amount . value ) > 0 ? (
134134 < >
135135 < FormattedNumber
136136 compact
@@ -165,9 +165,9 @@ export const MarketAssetsListItem = ({ ...reserve }: ReserveWithId) => {
165165 market = { currentMarket }
166166 protocolAction = { ProtocolAction . borrow }
167167 />
168- { reserve . borrowInfo ?. borrowingState === 'DISABLED' && ! reserve . isFrozen && (
169- < ReserveSubheader value = { 'Disabled' } />
170- ) }
168+ { reserve . borrowInfo ?. borrowingState === 'DISABLED' &&
169+ ! reserve . isFrozen &&
170+ reserve . borrowInfo . total . amount . value !== '0' && < ReserveSubheader value = { 'Disabled' } /> }
171171 </ ListColumn >
172172
173173 < ListColumn minWidth = { 95 } maxWidth = { 95 } align = "right" >
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ export const MarketAssetsListMobileItem = ({ ...reserve }: ReserveWithId) => {
117117 textAlign : 'center' ,
118118 } }
119119 >
120- { reserve . borrowInfo && Number ( reserve . borrowInfo . total . amount . value ) > 0 ? (
120+ { reserve . borrowInfo && Number ( reserve . borrowInfo ? .total . amount . value ) > 0 ? (
121121 < >
122122 < FormattedNumber
123123 compact
@@ -163,9 +163,9 @@ export const MarketAssetsListMobileItem = ({ ...reserve }: ReserveWithId) => {
163163 market = { currentMarket }
164164 protocolAction = { ProtocolAction . borrow }
165165 />
166- { reserve . borrowInfo ?. borrowingState === 'DISABLED' && ! reserve . isFrozen && (
167- < ReserveSubheader value = { 'Disabled' } />
168- ) }
166+ { reserve . borrowInfo ?. borrowingState === 'DISABLED' &&
167+ ! reserve . isFrozen &&
168+ reserve . borrowInfo . total . amount . value !== '0' && < ReserveSubheader value = { 'Disabled' } /> }
169169 </ Row >
170170 < Button
171171 variant = "outlined"
You can’t perform that action at this time.
0 commit comments