working_frontend
This commit is contained in:
parent
b9da592254
commit
8ce4433ddb
|
@ -13,7 +13,7 @@ const FeedbackForm = (props) => {
|
||||||
const [modQuery, setModQuery] = useState("");
|
const [modQuery, setModQuery] = useState("");
|
||||||
const [response, setResponse] = useState("");
|
const [response, setResponse] = useState("");
|
||||||
const backendUrl = '/api';//process.env.REACT_APP_BACKEND_URL+'/api';
|
const backendUrl = '/api';//process.env.REACT_APP_BACKEND_URL+'/api';
|
||||||
|
const mod = "Was this modification to the query correct? " + messages[0].modQuery
|
||||||
function onSubmit(event) {
|
function onSubmit(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ const FeedbackForm = (props) => {
|
||||||
</label>
|
</label>
|
||||||
<select
|
<select
|
||||||
id="query-correctness"
|
id="query-correctness"
|
||||||
name="Was this modification to the query correct?" {messages[0].modQuery}
|
name={mod}
|
||||||
onChange={(e) => setModQueryCorrectness(e.target.value)}
|
onChange={(e) => setModQueryCorrectness(e.target.value)}
|
||||||
>
|
>
|
||||||
<option value="yes">yes</option>
|
<option value="yes">yes</option>
|
||||||
|
|
Loading…
Reference in New Issue