show extraction tooltip only if we have extractors

This commit is contained in:
calli
2025-04-23 15:23:32 +03:00
parent 0f33a7ff0c
commit f0d4708b43
2 changed files with 19 additions and 18 deletions

View File

@@ -102,9 +102,11 @@ export const PlanetCard = ({
return (
<Tooltip
title={
<ExtractionSimulationTooltip
extractors={extractors}
/>
extractors.length > 0 ? (
<ExtractionSimulationTooltip
extractors={extractors}
/>
) : null
}
componentsProps={{
tooltip: {