@elice/material-quiz 1.240614.0 → 1.240619.0

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.
@@ -244,8 +244,9 @@ const MaterialQuizSelectMultipleOrder = () => {
244
244
  quizResponseId
245
245
  } = await apiClient.postOrgMaterialQuizResponseAdd({
246
246
  materialQuizId: materialQuiz.id,
247
- answer: answerList.map(answer => answer.order)
247
+ answer: answerList.map(answer => answer.order) // FIXME: Type mismatch
248
248
  });
249
+
249
250
  const {
250
251
  quizResponse
251
252
  } = await apiClient.getOrgMaterialQuizResponseGet({
@@ -100,7 +100,7 @@ const MaterialQuizSelectOne = () => {
100
100
  }, [materialQuiz, userId]);
101
101
  // submit handler
102
102
  const handleSubmit = async () => {
103
- if (!materialQuiz) {
103
+ if (!materialQuiz || !selectedAnswer) {
104
104
  return;
105
105
  }
106
106
  setSubmitStatus('pending');
@@ -240,8 +240,9 @@ const MaterialQuizSelectMultipleOrder = () => {
240
240
  quizResponseId
241
241
  } = await postOrgMaterialQuizResponseAdd({
242
242
  materialQuizId: materialQuiz.id,
243
- answer: answerList.map(answer => answer.order)
243
+ answer: answerList.map(answer => answer.order) // FIXME: Type mismatch
244
244
  });
245
+
245
246
  const {
246
247
  quizResponse
247
248
  } = await getOrgMaterialQuizResponseGet({
@@ -96,7 +96,7 @@ const MaterialQuizSelectOne = () => {
96
96
  }, [materialQuiz, userId]);
97
97
  // submit handler
98
98
  const handleSubmit = async () => {
99
- if (!materialQuiz) {
99
+ if (!materialQuiz || !selectedAnswer) {
100
100
  return;
101
101
  }
102
102
  setSubmitStatus('pending');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-quiz",
3
- "version": "1.240614.0",
3
+ "version": "1.240619.0",
4
4
  "description": "User view and editing components of Elice material quiz",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -29,7 +29,7 @@
29
29
  "@elice/blocks": "^1",
30
30
  "@elice/design-tokens": "^1",
31
31
  "@elice/icons": "^1",
32
- "@elice/intl": "*",
32
+ "@elice/intl": "^0",
33
33
  "@elice/markdown": "^1",
34
34
  "@elice/material-shared-types": "*",
35
35
  "@elice/material-shared-utils": "*",
@@ -57,17 +57,17 @@
57
57
  "tslib": "^2.6.1"
58
58
  },
59
59
  "devDependencies": {
60
- "@elice/api-client": "1.240131.0",
60
+ "@elice/api-client": "^1.240619.0",
61
61
  "@elice/blocks": "^1.240514.0",
62
62
  "@elice/design-tokens": "^1.220803.0",
63
63
  "@elice/icons": "^1.230814.0",
64
64
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
65
65
  "@elice/intl": "0.240425.0-rc.2",
66
66
  "@elice/markdown": "^1.240124.0",
67
- "@elice/material-shared-types": "1.240614.0",
68
- "@elice/material-shared-utils": "1.240614.0",
67
+ "@elice/material-shared-types": "1.240619.0",
68
+ "@elice/material-shared-utils": "1.240619.0",
69
69
  "@elice/mui-system": "^5.240108.1",
70
- "@elice/types": "1.240131.0",
70
+ "@elice/types": "^1.240619.0",
71
71
  "@emotion/react": "^11.10.0",
72
72
  "@emotion/styled": "^11.10.0",
73
73
  "@fortawesome/pro-regular-svg-icons": "^6.4.2",
@@ -87,5 +87,5 @@
87
87
  "react-use": "^17.2.4",
88
88
  "styled-components": "^5.3.0"
89
89
  },
90
- "gitHead": "129db3c8074dd01f6949eb115bfc4f2f13c68f29"
90
+ "gitHead": "38cf96eba78c95ce503ed36ebd3561c68f90ef8f"
91
91
  }