mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 18:13:52 +01:00
Blanking Prompt value on close
This commit is contained in:
parent
08d0b4cbae
commit
af43e63415
@ -26,9 +26,12 @@ export function PromptManager(): React.ReactElement {
|
|||||||
[],
|
[],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const valueState = useState('')
|
||||||
|
|
||||||
function close(): void {
|
function close(): void {
|
||||||
if (prompt === null) return;
|
if (prompt === null) return;
|
||||||
prompt.resolve(false);
|
prompt.resolve(false);
|
||||||
|
valueState[1]('')
|
||||||
setPrompt(null);
|
setPrompt(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,8 +52,6 @@ export function PromptManager(): React.ReactElement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const valueState = useState('')
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{prompt != null && (
|
{prompt != null && (
|
||||||
|
Loading…
Reference in New Issue
Block a user