diff --git a/src/app/components/Slot.jsx b/src/app/components/Slot.jsx index 0bab03bb..83567d8c 100644 --- a/src/app/components/Slot.jsx +++ b/src/app/components/Slot.jsx @@ -124,15 +124,18 @@ export default class Slot extends TranslatedComponent { )} -
- {formats.round(mass)} - {units.T} -
+ {propsToShow.mass ? +
+ {formats.round(mass)} + {units.T} +
: null}
{toPairs(propsToShow).sort().map(([prop, show]) => { const { unit, value } = m.getFormatted(prop, true); - if (!show || isNaN(value)) { + // Don't show mass again; it's already shown on the top right + // corner of a slot + if (!show || isNaN(value) || prop == 'mass') { return null; } else { return (
diff --git a/src/app/pages/OutfittingPage.jsx b/src/app/pages/OutfittingPage.jsx index 165a4899..d1c5cc5c 100644 --- a/src/app/pages/OutfittingPage.jsx +++ b/src/app/pages/OutfittingPage.jsx @@ -108,6 +108,7 @@ const SHOW_BY_DEFAULT = { 'scannerrange': true, 'scannertimetoscan': true, 'maxangle': true, + 'mass': true, }; /**