@gamelearn/arcade-components 2.12.9 → 2.12.11

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.
@@ -261,11 +261,12 @@ var ImageClickWrapperComponent = function ImageClickWrapperComponent(props) {
261
261
  });
262
262
 
263
263
  if (timer) {
264
+ clearIntervalForCountDown();
264
265
  pauseTheCounter();
265
266
  }
266
267
  }
267
268
  }
268
- }, [clickedZones, areas.length, specificFeedbacks, hasClickOnce, completed, info.solution.right, pauseTheCounter, timer]);
269
+ }, [clickedZones, areas.length, specificFeedbacks, hasClickOnce, completed, info.solution.right, pauseTheCounter, timer, clearIntervalForCountDown]);
269
270
  (0, _react.useEffect)(function () {
270
271
  setResolveAction(function (resolve) {
271
272
  if (timer) {
@@ -317,6 +317,7 @@ var TextClickPuzzleComponent = function TextClickPuzzleComponent(_ref) {
317
317
  text: list[currentSlide].info.orderFeedback.desc || translate('puzzles.incorrectOrder'),
318
318
  timeout: false
319
319
  });
320
+ setCurrentSlide(0);
320
321
  } else {
321
322
  // si has click en mala repuesta
322
323
  handleIncorrectClick(currentTextDom, specificWrongFeedback);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "author": "Gamelearn",
4
4
  "license": "unlicense",
5
- "version": "2.12.9",
5
+ "version": "2.12.11",
6
6
  "main": "dist/index.js",
7
7
  "files": [
8
8
  "dist",