@micromag/screen-quiz 0.3.660 → 0.3.664
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 +9 -5
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -1261,11 +1261,15 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1261
1261
|
var _ref5 = answer || {},
|
|
1262
1262
|
_ref5$result = _ref5.result,
|
|
1263
1263
|
answerResult = _ref5$result === void 0 ? null : _ref5$result;
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1264
|
+
|
|
1265
|
+
// Think abouut this
|
|
1266
|
+
// const firstCustomResult = (answers || []).find((it = null) => it?.result !== null) || null;
|
|
1267
|
+
// console.log('firstCustomResult', firstCustomResult, answers);
|
|
1268
|
+
|
|
1269
|
+
var questionResultHasText = isTextFilled(questionResult);
|
|
1270
|
+
var questionResultHasImage = isImageFilled(questionResultImage);
|
|
1271
|
+
var answerResultHasText = isTextFilled(answerResult);
|
|
1272
|
+
var hasResult = questionResultHasText || questionResultHasImage || answerResultHasText;
|
|
1269
1273
|
var onNextSlide = useCallback(function () {
|
|
1270
1274
|
if (isEdit) {
|
|
1271
1275
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.664",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"@micromag/element-button": "^0.3.660",
|
|
70
70
|
"@micromag/element-container": "^0.3.660",
|
|
71
71
|
"@micromag/element-footer": "^0.3.660",
|
|
72
|
-
"@micromag/element-header": "^0.3.
|
|
72
|
+
"@micromag/element-header": "^0.3.663",
|
|
73
73
|
"@micromag/element-heading": "^0.3.660",
|
|
74
74
|
"@micromag/element-layout": "^0.3.660",
|
|
75
75
|
"@micromag/element-scroll": "^0.3.660",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"access": "public",
|
|
90
90
|
"registry": "https://registry.npmjs.org/"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "6d3b8d0e1eecbe42580fda8737322b92794fa12c"
|
|
93
93
|
}
|