[no gbp] fixes weird decimals in the orm ui (#74155)

## About The Pull Request
fixes these decimals popping up 

![uiop](https://user-images.githubusercontent.com/95004236/226564916-4a998cb3-b9b5-475e-b2d4-68c36b149be1.png)


### Mapping March
Ckey to receive rewards: N/A

## Why It's Good For The Game
bug fixing

## Changelog
🆑
fix: the orm will no longer display weird decimals
/🆑
This commit is contained in:
SMOSMOSMOSMOSMO
2023-03-22 20:25:48 -06:00
committed by GitHub
parent a008f197b7
commit 0f736119f9
@@ -165,6 +165,7 @@ const MaterialRow = (props, context) => {
(mat_icon) => mat_icon.id === material.id
);
const sheet_amounts = Math.floor(material.amount);
const print_amount = 5;
const max_sheets = 50;
@@ -188,7 +189,7 @@ const MaterialRow = (props, context) => {
<Table.Cell>{toTitleCase(material.name)}</Table.Cell>
<Table.Cell collapsing textAlign="left">
<Box color="label">
{formatSiUnit(material.amount, 0)}{' '}
{formatSiUnit(sheet_amounts, 0)}{' '}
{material.amount === 1 ? 'sheet' : 'sheets'}
</Box>
</Table.Cell>
@@ -210,7 +211,7 @@ const MaterialRow = (props, context) => {
<Button.Input
content={
'[Max: ' +
(material.amount < max_sheets ? material.amount : max_sheets) +
(sheet_amounts < max_sheets ? sheet_amounts : max_sheets) +
']'
}
color={'transparent'}