mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
MISC: enforce eslint react checks (#640)
This commit is contained in:
committed by
GitHub
parent
91bfb154b6
commit
1d5a735941
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user