mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-01 20:13:51 +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) => {
|
LogBoxEvents.subscribe((script: RunningScript) => {
|
||||||
const id = script.server + "-" + script.filename + script.args.map((x: any): string => `${x}`).join("-");
|
const id = script.server + "-" + script.filename + script.args.map((x: any): string => `${x}`).join("-");
|
||||||
|
if (logs.find((l) => l.id === id)) return;
|
||||||
setLogs((old) => {
|
setLogs((old) => {
|
||||||
return [
|
return [
|
||||||
...old,
|
...old,
|
||||||
|
Loading…
Reference in New Issue
Block a user