@elice/material-survey 1.240618.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.
@@ -83,7 +83,7 @@ const MaterialSurveySelectOne = () => {
83
83
  }, [materialSurvey, userId]);
84
84
  // submit handler
85
85
  const handleSubmit = async () => {
86
- if (!materialSurvey) {
86
+ if (!materialSurvey || !selectedAnswer) {
87
87
  return;
88
88
  }
89
89
  setSubmitStatus('pending');
@@ -92,8 +92,9 @@ const MaterialSurveyText = () => {
92
92
  surveyResponseId
93
93
  } = await apiClient.postOrgMaterialSurveyResponseAdd({
94
94
  materialSurveyId: materialSurvey.id,
95
- answers: [answer]
95
+ answers: [answer] // FIXME: Type mismatch
96
96
  });
97
+
97
98
  const {
98
99
  surveyResponse
99
100
  } = await apiClient.getOrgMaterialSurveyResponseGet({
@@ -79,7 +79,7 @@ const MaterialSurveySelectOne = () => {
79
79
  }, [materialSurvey, userId]);
80
80
  // submit handler
81
81
  const handleSubmit = async () => {
82
- if (!materialSurvey) {
82
+ if (!materialSurvey || !selectedAnswer) {
83
83
  return;
84
84
  }
85
85
  setSubmitStatus('pending');
@@ -88,8 +88,9 @@ const MaterialSurveyText = () => {
88
88
  surveyResponseId
89
89
  } = await postOrgMaterialSurveyResponseAdd({
90
90
  materialSurveyId: materialSurvey.id,
91
- answers: [answer]
91
+ answers: [answer] // FIXME: Type mismatch
92
92
  });
93
+
93
94
  const {
94
95
  surveyResponse
95
96
  } = await getOrgMaterialSurveyResponseGet({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elice/material-survey",
3
- "version": "1.240618.0",
3
+ "version": "1.240619.0",
4
4
  "description": "User view and editing components of Elice material survey",
5
5
  "repository": "https://git.elicer.io/elice/frontend/library/elice-material",
6
6
  "license": "UNLICENSED",
@@ -45,16 +45,16 @@
45
45
  "tslib": "^2.6.1"
46
46
  },
47
47
  "devDependencies": {
48
- "@elice/api-client": "^1.230815.0",
48
+ "@elice/api-client": "^1.240619.0",
49
49
  "@elice/blocks": "^1.240514.0",
50
50
  "@elice/design-tokens": "^1.220803.0",
51
51
  "@elice/icons": "^1.230814.0",
52
52
  "@elice/icons-legacy": "npm:@elice/icons@0.230814.0",
53
53
  "@elice/intl": "0.240425.0-rc.2",
54
54
  "@elice/markdown": "^1.220815.0",
55
- "@elice/material-shared-types": "1.240618.0",
56
- "@elice/material-shared-utils": "1.240618.0",
57
- "@elice/types": "^1.240208.0",
55
+ "@elice/material-shared-types": "1.240619.0",
56
+ "@elice/material-shared-utils": "1.240619.0",
57
+ "@elice/types": "^1.240619.0",
58
58
  "@types/classnames": "^2.3.1",
59
59
  "@types/react": "~17.0.9",
60
60
  "@types/react-transition-group": "^4.4.4",
@@ -63,5 +63,5 @@
63
63
  "react-use": "^17.2.4",
64
64
  "styled-components": "^5.3.0"
65
65
  },
66
- "gitHead": "63d4bb89b897e3f211035a7b3c7d8677ab43e4ff"
66
+ "gitHead": "38cf96eba78c95ce503ed36ebd3561c68f90ef8f"
67
67
  }