From ad3b217b8f4b544a9d51dd28438035882081d31b Mon Sep 17 00:00:00 2001 From: omuretsu <84951833+Snarling@users.noreply.github.com> Date: Sat, 27 May 2023 01:58:47 -0400 Subject: [PATCH] lint fix Fix sloppy unlinted hotfix code --- src/Corporation/Division.ts | 2 +- src/Corporation/ui/MaterialElem.tsx | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Corporation/Division.ts b/src/Corporation/Division.ts index a5f0d5a63..a7bbfaaf2 100644 --- a/src/Corporation/Division.ts +++ b/src/Corporation/Division.ts @@ -425,7 +425,7 @@ export class Division { if (producableFrac > 0 && prod > 0) { const requiredMatsEntries = getRecordEntries(this.requiredMaterials); let avgQlt = 0; - let divider = requiredMatsEntries.length; + const divider = requiredMatsEntries.length; for (const [reqMatName, reqMat] of requiredMatsEntries) { const reqMatQtyNeeded = reqMat * prod * producableFrac; warehouse.materials[reqMatName].stored -= reqMatQtyNeeded; diff --git a/src/Corporation/ui/MaterialElem.tsx b/src/Corporation/ui/MaterialElem.tsx index 8d525eaf4..4b0dda01b 100644 --- a/src/Corporation/ui/MaterialElem.tsx +++ b/src/Corporation/ui/MaterialElem.tsx @@ -23,7 +23,6 @@ import Box from "@mui/material/Box"; import { LimitMaterialProductionModal } from "./modals/LimitMaterialProductionModal"; import { CityName } from "../../Enums"; import { CorpUnlockName } from "../data/Enums"; -import { getRecordKeys } from "../../Types/Record"; interface IMaterialProps { warehouse: Warehouse;