@micromag/screen-quiz 0.3.651 → 0.3.652
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.
- package/es/index.js +2 -2
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -764,7 +764,7 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
764
764
|
}, [numberOfAnswers, onQuizReset]);
|
|
765
765
|
var isSplitted = layout === 'split';
|
|
766
766
|
var verticalAlign = isSplitted ? null : layout;
|
|
767
|
-
var showReset = isEdit;
|
|
767
|
+
var showReset = isEdit && userAnswerIndex !== null;
|
|
768
768
|
return /*#__PURE__*/React.createElement("div", {
|
|
769
769
|
className: classNames([styles$2.container, _defineProperty(_defineProperty({}, styles$2.disabled, clickDisabled), className, className !== null)]),
|
|
770
770
|
"data-screen-ready": true
|
|
@@ -1414,7 +1414,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1414
1414
|
verticalAlign = questionLayout;
|
|
1415
1415
|
}
|
|
1416
1416
|
var showPoints = isEdit;
|
|
1417
|
-
var showReset = isEdit;
|
|
1417
|
+
var showReset = isEdit && currentAnsweredIndex !== null;
|
|
1418
1418
|
return /*#__PURE__*/React.createElement("div", {
|
|
1419
1419
|
className: classNames([styles$2.container, _defineProperty(_defineProperty({}, styles$2[direction], direction !== null), className, className !== null)]),
|
|
1420
1420
|
"data-screen-ready": true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.652",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"access": "public",
|
|
90
90
|
"registry": "https://registry.npmjs.org/"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "77f459a1fabeb2d40fb26866e2d2c8353d54fd9f"
|
|
93
93
|
}
|