mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-09-22 13:50:59 +02:00
clear currentScript to null not undefined
This commit is contained in:
parent
a20dd47ec6
commit
6251678532
@ -126,6 +126,7 @@ export function Root(props: IProps): React.ReactElement {
|
|||||||
})
|
})
|
||||||
if (currentScript && (GetServer(currentScript.hostname) === null)) {
|
if (currentScript && (GetServer(currentScript.hostname) === null)) {
|
||||||
currentScript = openScripts[0];
|
currentScript = openScripts[0];
|
||||||
|
if (currentScript === undefined) currentScript = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user