Hide DetectedTokenAggregators if token.aggregators lists are empty (#15824)

feature/default_network_editable
Dan J Miller 2 years ago committed by seaona
parent 96a68019bf
commit b2f1c3f53e
  1. 4
      ui/components/app/detected-token/detected-token-details/detected-token-details.js

@ -35,7 +35,9 @@ const DetectedTokenDetails = ({
tokensListDetected={tokensListDetected}
/>
<DetectedTokenAddress tokenAddress={token.address} />
<DetectedTokenAggregators aggregators={token.aggregators} />
{token.aggregators.length && (
<DetectedTokenAggregators aggregators={token.aggregators} />
)}
</Box>
</Box>
);

Loading…
Cancel
Save