format+lint

This commit is contained in:
Snarling 2022-08-20 19:16:11 -04:00
parent 7578860ce7
commit 5466ab3f69
3 changed files with 2 additions and 10 deletions

@ -11,7 +11,6 @@ import { StockSymbols } from "./data/StockSymbols";
import { CONSTANTS } from "../Constants"; import { CONSTANTS } from "../Constants";
import { IMap } from "../types"; import { IMap } from "../types";
import { EventEmitter } from "../utils/EventEmitter";
import { numeralWrapper } from "../ui/numeralFormat"; import { numeralWrapper } from "../ui/numeralFormat";

@ -28,9 +28,7 @@ export function StockMarketRoot(props: IProps): React.ReactElement {
return ( return (
<> <>
<InfoAndPurchases p={props.p} rerender={rerender} /> <InfoAndPurchases p={props.p} rerender={rerender} />
{props.p.hasWseAccount && ( {props.p.hasWseAccount && <StockTickers p={props.p} stockMarket={props.stockMarket} />}
<StockTickers p={props.p} stockMarket={props.stockMarket} />
)}
</> </>
); );
} }

@ -435,12 +435,7 @@ export function GameRoot({ player, engine, terminal }: IProps): React.ReactEleme
break; break;
} }
case Page.StockMarket: { case Page.StockMarket: {
mainPage = ( mainPage = <StockMarketRoot p={player} stockMarket={StockMarket} />;
<StockMarketRoot
p={player}
stockMarket={StockMarket}
/>
);
break; break;
} }
case Page.City: { case Page.City: {