From 0edd4ffdf1b1b52f746fb3f10fcdc3f8e3e1c12a Mon Sep 17 00:00:00 2001 From: "tyasuh.taeragan@gmail.com" Date: Thu, 7 Oct 2021 13:46:33 -0400 Subject: [PATCH] Corpo Typo Fixes --- src/Corporation/ui/ResearchModal.tsx | 2 +- src/Corporation/ui/SellSharesModal.tsx | 13 +++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Corporation/ui/ResearchModal.tsx b/src/Corporation/ui/ResearchModal.tsx index df4215096..5d125bdac 100644 --- a/src/Corporation/ui/ResearchModal.tsx +++ b/src/Corporation/ui/ResearchModal.tsx @@ -104,7 +104,7 @@ export function ResearchModal(props: IProps): React.ReactElement { - Research points: {props.industry.sciResearch.qty} + Research points: {props.industry.sciResearch.qty.toFixed(3)}
Multipliers from research:
* Advertising Multiplier: x{researchTree.getAdvertisingMultiplier()} diff --git a/src/Corporation/ui/SellSharesModal.tsx b/src/Corporation/ui/SellSharesModal.tsx index 24eadd145..e2085912a 100644 --- a/src/Corporation/ui/SellSharesModal.tsx +++ b/src/Corporation/ui/SellSharesModal.tsx @@ -9,7 +9,7 @@ import { ICorporation } from "../ICorporation"; import Typography from "@mui/material/Typography"; import TextField from "@mui/material/TextField"; import Button from "@mui/material/Button"; - +import { Money } from "../../ui/React/Money"; interface IProps { open: boolean; onClose: () => void; @@ -72,11 +72,12 @@ export function SellSharesModal(props: IProps): React.ReactElement { player.gainMoney(profit); player.recordMoneySource(profit, "corporation"); props.onClose(); - dialogBoxCreate( - `Sold {numeralWrapper.formatMoney(shares)} shares for ` + - `${numeralWrapper.formatMoney(profit)}. ` + - `The corporation's stock price fell to ${numeralWrapper.formatMoney(corp.sharePrice)} ` + - `as a result of dilution.`, + dialogBoxCreate( + <> + Sold {numeralWrapper.formatMoney(shares)} shares for + . The corporation's stock price fell to  + as a result of dilution. + , ); props.rerender();