mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-11 02:03:58 +01:00
Fix shareholder earnings in UI being per cycle instead of per sec
This commit is contained in:
parent
c117b55df9
commit
74e4a32f13
@ -279,13 +279,14 @@ function DividendsStats({ profit }: IDividendsStatsProps): React.ReactElement {
|
||||
const totalDividends = corp.dividendRate * profit;
|
||||
const retainedEarnings = profit - totalDividends;
|
||||
const dividendsPerShare = totalDividends / corp.totalShares;
|
||||
const playerEarnings = corp.getDividends() / CorporationConstants.SecsPerMarketCycle;
|
||||
return (
|
||||
<StatsTable
|
||||
rows={[
|
||||
["Retained Profits (after dividends):", <MoneyRate money={retainedEarnings} />],
|
||||
["Dividend Percentage:", numeralWrapper.format(corp.dividendRate, "0%")],
|
||||
["Dividends per share:", <MoneyRate money={dividendsPerShare} />],
|
||||
["Your earnings as a shareholder:", <MoneyRate money={corp.getDividends()} />],
|
||||
["Your earnings as a shareholder:", <MoneyRate money={playerEarnings} />],
|
||||
]}
|
||||
/>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user