From 0f736119f9c53aa6f280e562736b0d27718683b7 Mon Sep 17 00:00:00 2001 From: SMOSMOSMOSMOSMO <95004236+SmoSmoSmoSmok@users.noreply.github.com> Date: Thu, 23 Mar 2023 04:25:48 +0200 Subject: [PATCH] [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 :cl: fix: the orm will no longer display weird decimals /:cl: --- tgui/packages/tgui/interfaces/OreRedemptionMachine.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tgui/packages/tgui/interfaces/OreRedemptionMachine.js b/tgui/packages/tgui/interfaces/OreRedemptionMachine.js index df47f2f9452..d28bb81ca87 100644 --- a/tgui/packages/tgui/interfaces/OreRedemptionMachine.js +++ b/tgui/packages/tgui/interfaces/OreRedemptionMachine.js @@ -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) => { {toTitleCase(material.name)} - {formatSiUnit(material.amount, 0)}{' '} + {formatSiUnit(sheet_amounts, 0)}{' '} {material.amount === 1 ? 'sheet' : 'sheets'} @@ -210,7 +211,7 @@ const MaterialRow = (props, context) => {