@gamelearn/arcade-components 0.26.6 → 0.26.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -340,27 +340,8 @@ var TextClickPuzzleComponent = function TextClickPuzzleComponent(_ref) {
|
|
|
340
340
|
if ((feedbackCorrect === null || feedbackCorrect === void 0 ? void 0 : feedbackCorrect.id) === id) {
|
|
341
341
|
handleCorrectClick(allDataTextIds, specificCorrectFeedback);
|
|
342
342
|
} //si la opción clickada es incorrecta
|
|
343
|
-
else if ((feedbackIncorrect === null || feedbackIncorrect === void 0 ? void 0 : feedbackIncorrect.id) === id) {
|
|
344
|
-
handleIncorrectClick(allDataTextIds, specificWrongFeedback);
|
|
345
|
-
} else if (id === 'allWrong') {
|
|
346
|
-
// si tiene feedback general definido
|
|
347
|
-
setFeedbackData(function (prevState) {
|
|
348
|
-
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
349
|
-
timeout: true,
|
|
350
|
-
result: false
|
|
351
|
-
});
|
|
352
|
-
});
|
|
353
|
-
|
|
354
|
-
if (list[currentSlide].info.solution.wrong.desc !== '') {
|
|
355
|
-
setFeedbackData(function (prevState) {
|
|
356
|
-
return _objectSpread(_objectSpread({}, prevState), {}, {
|
|
357
|
-
result: false,
|
|
358
|
-
text: list[currentSlide].info.solution.wrong.desc,
|
|
359
|
-
timeout: false
|
|
360
|
-
});
|
|
361
|
-
});
|
|
362
|
-
} // si no tiene ni feedback general ni specificFeedbacks definido
|
|
363
|
-
|
|
343
|
+
else if ((feedbackIncorrect === null || feedbackIncorrect === void 0 ? void 0 : feedbackIncorrect.id) === id || id === 'allWrong') {
|
|
344
|
+
handleIncorrectClick(allDataTextIds, specificWrongFeedback);
|
|
364
345
|
}
|
|
365
346
|
}
|
|
366
347
|
}, [list, currentSlide, orderCounter, handleCorrectClick, emitEvent, translate, handleIncorrectClick, playSound]);
|