removed double check causing error

This commit is contained in:
yoannchb-pro
2023-06-20 21:35:09 -04:00
parent 05670745d8
commit 145cad1874
2 changed files with 3 additions and 6 deletions
+1 -3
View File
@@ -21,9 +21,7 @@ function handleRadioAndCheckbox(
for (const input of inputList as NodeListOf<HTMLInputElement>) {
const content = normalizeText(input.parentNode.textContent);
const valide =
gptAnswer.normalizedResponse.includes(content) ||
content.includes(gptAnswer.normalizedResponse);
const valide = gptAnswer.normalizedResponse.includes(content);
if (config.logs) Logs.responseTry(content, valide);
if (valide) {
if (config.mouseover) {
+2 -3
View File
@@ -45,8 +45,7 @@ function handleSelect(
for (const option of options) {
const content = normalizeText(option.textContent);
const valide =
correct[j].includes(content) || content.includes(correct[j]);
const valide = correct[j].includes(content);
/* Handle put in order question */
if (!/[^\d]+/gi.test(content)) {
@@ -56,7 +55,7 @@ function handleSelect(
const content = normalizeText(elementTitle.textContent);
const indexCorrectAnswer = correct.findIndex((answer) => {
const valide = answer.includes(content) || content.includes(answer);
const valide = answer.includes(content);
if (config.logs) Logs.responseTry(content, valide);
return valide;
});