Support non-percent modifiers

This commit is contained in:
Felix Linker
2021-01-03 12:32:01 +01:00
parent c3747e4e5e
commit fc1524a943

View File

@@ -67,6 +67,7 @@ export default class Modification extends TranslatedComponent {
return null;
}
const { value: modifierValue, unit: modifierUnit } = m.getModifierFormatted(property);
return (
<tr>
<td>
@@ -100,7 +101,7 @@ export default class Modification extends TranslatedComponent {
secondary: beneficial,
warning: beneficial === false,
})}
>{formats.pct(m.getModifier(property))}</td>
>{formats.f2(modifierValue)}{modifierUnit || ''}</td>
</tr>
);
}