MISC: enforce eslint react checks (#640)

This commit is contained in:
Aleksei Bezrodnov
2023-06-27 04:29:44 +02:00
committed by GitHub
parent 91bfb154b6
commit 1d5a735941
68 changed files with 2062 additions and 601 deletions

View File

@@ -541,6 +541,7 @@ export function InteractiveTutorialRoot(): React.ReactElement {
<a
href="https://bitburner-official.readthedocs.io/en/latest/guidesandtips/gettingstartedguideforbeginnerprogrammers.html"
target="_blank"
rel="noreferrer"
>
Getting Started
</a>{" "}
@@ -560,7 +561,8 @@ export function InteractiveTutorialRoot(): React.ReactElement {
useEffect(() => {
return ITutorialEvents.subscribe(rerender);
}, []);
}, [rerender]);
const step = ITutorial.currStep;
const content = contents[step];
if (content === undefined) throw new Error("error in the tutorial");