@gamelearn/arcade-components 0.16.1 → 0.16.2

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.
@@ -54,7 +54,7 @@ var AutoEvaluation = function AutoEvaluation(_ref) {
54
54
  currentQuestion = _useState6[0],
55
55
  setCurrentQuestion = _useState6[1];
56
56
 
57
- var _useState7 = (0, _react.useState)(),
57
+ var _useState7 = (0, _react.useState)(null),
58
58
  _useState8 = _slicedToArray(_useState7, 2),
59
59
  optionSelected = _useState8[0],
60
60
  selectOption = _useState8[1];
@@ -94,7 +94,7 @@ var AutoEvaluation = function AutoEvaluation(_ref) {
94
94
  if (currentQuestion === questions.length - 1) {
95
95
  setFinish(true);
96
96
  } else {
97
- selectOption();
97
+ selectOption(null);
98
98
  setCurrentQuestion(currentQuestion + 1);
99
99
  }
100
100
  };
@@ -140,8 +140,8 @@ var AutoEvaluation = function AutoEvaluation(_ref) {
140
140
  }, /*#__PURE__*/_react.default.createElement("span", null, translate('auto-evaluation.end'))) : /*#__PURE__*/_react.default.createElement("button", {
141
141
  onClick: handleNextQuestion,
142
142
  type: "button",
143
- disabled: !optionSelected,
144
- className: "gat--btn__navigation ".concat(!optionSelected ? 'disabled' : '')
143
+ disabled: optionSelected === null,
144
+ className: "gat--btn__navigation ".concat(optionSelected === null ? 'disabled' : '')
145
145
  }, /*#__PURE__*/_react.default.createElement("span", {
146
146
  className: "icon-next"
147
147
  })))), phase === 'end' && /*#__PURE__*/_react.default.createElement(_EndScreen.default, {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gamelearn/arcade-components",
3
3
  "license": "Gamelearn",
4
- "version": "0.16.1",
4
+ "version": "0.16.2",
5
5
  "main": "dist/index.js",
6
6
  "files": [
7
7
  "dist",