mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
dont double log
This commit is contained in:
parent
d99d3fc222
commit
f99c3fd0cd
@ -27,6 +27,7 @@ export function LogBoxManager(): React.ReactElement {
|
||||
() =>
|
||||
LogBoxEvents.subscribe((script: RunningScript) => {
|
||||
const id = script.server + "-" + script.filename + script.args.map((x: any): string => `${x}`).join("-");
|
||||
if (logs.find((l) => l.id === id)) return;
|
||||
setLogs((old) => {
|
||||
return [
|
||||
...old,
|
||||
|
Loading…
Reference in New Issue
Block a user