res = (diff < 0) ? '0' : diff/1e18
return (<>{res}</>)
}}</span>
const Kek = ({item})=>{ const diff = (item.tokenBalance-item.borrowBalanceCurrent) const res = (diff < 0) ? '0' : diff/1e18 return (<>{res}</>) } ... <span style={{margin: 16}}><Kek item={item} /></span>
Обсуждают сегодня