mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-19 15:54:09 +02:00
build fix, lint, remove some instanceof checks
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
import React, { useState, useEffect } from "react";
|
||||
|
||||
import { HashManager } from "../HashManager";
|
||||
import { HashUpgrades } from "../HashUpgrades";
|
||||
|
||||
import { Hashes } from "../../ui/React/Hashes";
|
||||
@@ -29,7 +28,7 @@ export function HashUpgradeModal(props: IProps): React.ReactElement {
|
||||
}, []);
|
||||
|
||||
const hashManager = Player.hashManager;
|
||||
if (!(hashManager instanceof HashManager)) {
|
||||
if (!hashManager) {
|
||||
throw new Error(`Player does not have a HashManager)`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user