diff --git a/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx b/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx index 6662b18..0e827e1 100644 --- a/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx +++ b/src/app/components/PlanetaryInteraction/PlanetTableRow.tsx @@ -290,21 +290,22 @@ export const PlanetTableRow = ({ textAlign: "end", }} > - {exports.map((e) => ( - - {`${( - (((piPrices?.appraisal.items.find((a) => a.typeID === e.typeId) - ?.prices.sell.min ?? 0) * - e.amount) / - 1000000) * - 24 * - 30 - ).toFixed(2)} M`} - - ))} + {exports.map((e) => { + const valueInMillions = (((piPrices?.appraisal.items.find((a) => a.typeID === e.typeId) + ?.prices.sell.min ?? 0) * e.amount) / 1000000) * 24 * 30; + const displayValue = valueInMillions >= 1000 + ? `${(valueInMillions / 1000).toFixed(2)} B` + : `${valueInMillions.toFixed(2)} M`; + + return ( + + {displayValue} + + ); + })}