mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 01:32:55 +02:00
Fix bug when checking for null
This commit is contained in:
Vendored
+3
-3
@@ -36029,18 +36029,18 @@ function updateStockOrderList(stock) {
|
||||
if (__WEBPACK_IMPORTED_MODULE_1__engine_js__["Engine"].currentPage !== __WEBPACK_IMPORTED_MODULE_1__engine_js__["Engine"].Page.StockMarket) {return;}
|
||||
var tickerId = "stock-market-ticker-" + stock.symbol;
|
||||
var orderList = document.getElementById(tickerId + "-order-list");
|
||||
if (orderList === null) {
|
||||
if (orderList == null) {
|
||||
console.log("ERROR: Could not find order list for " + stock.symbol);
|
||||
return;
|
||||
}
|
||||
|
||||
var orderBook = StockMarket["Orders"];
|
||||
if (orderBook === null) {
|
||||
if (orderBook == null) {
|
||||
console.log("ERROR: Could not find order book in stock market");
|
||||
return;
|
||||
}
|
||||
var stockOrders = orderBook[stock.symbol];
|
||||
if (stockOrders === null) {
|
||||
if (stockOrders == null) {
|
||||
console.log("ERROR: Could not find orders for: " + stock.symbol);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user