mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 15:43:49 +01:00
Clear input field for CodingContractModal after submission
This commit is contained in:
parent
0de588ee17
commit
5901312184
@ -40,6 +40,7 @@ export function CodingContractModal(): React.ReactElement {
|
||||
if (event.keyCode === KEY.ENTER && value !== "") {
|
||||
event.preventDefault();
|
||||
props.onAttempt(answer);
|
||||
setAnswer("");
|
||||
close();
|
||||
}
|
||||
}
|
||||
@ -75,6 +76,7 @@ export function CodingContractModal(): React.ReactElement {
|
||||
<Button
|
||||
onClick={() => {
|
||||
props.onAttempt(answer);
|
||||
setAnswer("");
|
||||
close();
|
||||
}}
|
||||
>
|
||||
|
Loading…
Reference in New Issue
Block a user