Update LogBoxManager.tsx

This commit is contained in:
Snarling 2022-04-24 04:49:31 -04:00
parent 4e64d6df5b
commit bb5cc82226

@ -267,12 +267,11 @@ function LogWindow(props: IProps): React.ReactElement {
{title()}
</Typography>
{!workerScripts.has(script.pid) && (
{!workerScripts.has(script.pid) ? (
<Button className={classes.titleButton} onClick={run} onTouchEnd={run}>
Run
</Button>
)}
{workerScripts.has(script.pid) && (
) : (
<Button className={classes.titleButton} onClick={kill} onTouchEnd={kill}>
Kill
</Button>