@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.
Files changed (2) hide show
  1. package/es/index.js +9 -5
  2. 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
- var firstCustomResult = (answers || []).find(function () {
1265
- var it = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
1266
- return (it === null || it === void 0 ? void 0 : it.result) !== null;
1267
- }) || null;
1268
- var hasResult = questionResult !== null || questionResultImage !== null || answerResult !== null || firstCustomResult !== null;
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.660",
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.660",
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": "584698bf4ef786f8fd35853328977554367515d9"
92
+ "gitHead": "6d3b8d0e1eecbe42580fda8737322b92794fa12c"
93
93
  }