mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-24 00:23:49 +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 {
|
||||
if (prompt === null) return;
|
||||
prompt.resolve(false);
|
||||
valueState[1]('')
|
||||
setPrompt(null);
|
||||
}
|
||||
|
||||
@ -49,8 +52,6 @@ export function PromptManager(): React.ReactElement {
|
||||
}
|
||||
}
|
||||
|
||||
const valueState = useState('')
|
||||
|
||||
return (
|
||||
<>
|
||||
{prompt != null && (
|
||||
|
Loading…
Reference in New Issue
Block a user