1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

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

This commit is contained in:
Dan J Miller 2022-09-14 13:04:46 -02:30 committed by GitHub
parent fc65ca63af
commit 487440f93d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);