diff --git a/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx b/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx index 88d9a0d..15ff97b 100644 --- a/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx +++ b/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx @@ -419,14 +419,14 @@ export const PlanetTableRow = ({ - {planetDetails.storageInfo.map((storage: StorageInfo) => { + {planetDetails.storageInfo.map((storage: StorageInfo, idx: number) => { const isLaunchpad = LAUNCHPAD_IDS.includes(storage.type_id); const fillRate = storage.fillRate; const color = fillRate > 90 ? '#ff0000' : fillRate > 80 ? '#ffa500' : fillRate > 60 ? '#ffd700' : 'inherit'; const contents = planet.info.pins.find(p => p.type_id === storage.type_id)?.contents || []; return ( - + {isLaunchpad ? 'Launchpad' : 'Storage'} {storage.capacity.toFixed(1)} m³ @@ -445,8 +445,8 @@ export const PlanetTableRow = ({ - {contents.map(content => ( - + {contents.map((content, idy) => ( + {PI_TYPES_MAP[content.type_id]?.name} @@ -482,13 +482,13 @@ export const PlanetTableRow = ({ >
{planetDetails.storageInfo.length === 0 &&No storage} - {planetDetails.storageInfo.map((storage: StorageInfo) => { + {planetDetails.storageInfo.map((storage: StorageInfo, idx: number) => { const isLaunchpad = LAUNCHPAD_IDS.includes(storage.type_id); const fillRate = storage.fillRate; const color = fillRate > 90 ? '#ff0000' : fillRate > 80 ? '#ffa500' : fillRate > 60 ? '#ffd700' : 'inherit'; return ( -
+
{isLaunchpad ? 'L' : 'S'}