Finished React components for new Stock Market UI

This commit is contained in:
danielyxie
2019-04-23 01:23:08 -07:00
committed by danielyxie
parent 6b3646e981
commit 4809a21e38
21 changed files with 1173 additions and 207 deletions
+1 -2
View File
@@ -77,7 +77,6 @@ import {
StockMarket,
StockSymbols,
SymbolToStockMap,
initStockMarket,
initSymbolToStockMap,
buyStock,
sellStock,
@@ -1708,7 +1707,7 @@ function NetscriptFunctions(workerScript) {
throw makeRuntimeRejectMsg(workerScript, "ERROR: Invalid stock symbol passed into sellShort()");
}
const res = sellShort(stock, shares, workerScript);
return res ? stock.price : 0;
},
placeOrder(symbol, shares, price, type, pos) {