UI: FIX #3376 Add a Total Profit line on Corporation Overview

Add a Total Profit line on Corporation Overview.

Feels a bit like a low added-value bloat.
But division did use that pattern already, so I guess it can count as streamlining.
This commit is contained in:
borisflagell 2022-05-22 11:52:45 +02:00
parent b2659318c8
commit 82a001c962

@ -60,6 +60,7 @@ export function Overview({ rerender }: IProps): React.ReactElement {
["Total Funds:", <Money money={corp.funds} />],
["Total Revenue:", <MoneyRate money={corp.revenue} />],
["Total Expenses:", <MoneyRate money={corp.expenses} />],
["Total Profit:", <MoneyRate money={corp.revenue-corp.expenses} />],
["Publicly Traded:", corp.public ? "Yes" : "No"],
["Owned Stock Shares:", numeralWrapper.format(corp.numShares, "0.000a")],
["Stock Price:", corp.public ? <Money money={corp.sharePrice} /> : "N/A"],