l-min-components 1.7.1548 → 1.7.1550
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/package.json +1 -1
- package/src/components/reportsComponents/reportQuestions/index.jsx +4 -1
- package/src/components/reportsComponents/reportQuestions/questions/dialogueScripted.jsx +1 -1
- package/src/components/reportsComponents/reportQuestions/questions/dialogueUnscripted.jsx +4 -2
- package/src/components/reportsComponents/reportQuestions/questions/quizScripted.jsx +1 -1
- package/src/components/reportsComponents/reportQuestions/questions/quizUnsripted.jsx +4 -2
package/package.json
CHANGED
|
@@ -72,10 +72,10 @@ const ReportQuestions = ({
|
|
|
72
72
|
onSwitchQuestion,
|
|
73
73
|
loading,
|
|
74
74
|
mainTitle,
|
|
75
|
-
defaultSelected,
|
|
76
75
|
}) => {
|
|
77
76
|
const { findText } = useTranslation(wordStore);
|
|
78
77
|
const [questionList, setQuestionList] = useState([]);
|
|
78
|
+
const [defaultSelected, setDefaultSelected] = useState(1);
|
|
79
79
|
useEffect(() => {
|
|
80
80
|
if (questions?.length) {
|
|
81
81
|
setQuestionList(questions);
|
|
@@ -140,6 +140,7 @@ const ReportQuestions = ({
|
|
|
140
140
|
accountType={accountType}
|
|
141
141
|
data={toggle}
|
|
142
142
|
onClose={() => {
|
|
143
|
+
setDefaultSelected(toggle?.defaultSelected || 1);
|
|
143
144
|
setToggle(null);
|
|
144
145
|
}}
|
|
145
146
|
/>
|
|
@@ -159,9 +160,11 @@ const ReportQuestions = ({
|
|
|
159
160
|
setAIScore(0);
|
|
160
161
|
setInstructorScore(0);
|
|
161
162
|
setComment(null);
|
|
163
|
+
setDefaultSelected(1);
|
|
162
164
|
};
|
|
163
165
|
const handleNext = () => {
|
|
164
166
|
reset();
|
|
167
|
+
|
|
165
168
|
if (nextId) onSwitchQuestion?.(nextId);
|
|
166
169
|
};
|
|
167
170
|
const handlePrev = () => {
|
|
@@ -85,7 +85,9 @@ const DialogueUnscripted = ({
|
|
|
85
85
|
<Response
|
|
86
86
|
title=""
|
|
87
87
|
response={
|
|
88
|
-
analysis?.models?.length > 0 &&
|
|
88
|
+
analysis?.models?.length > 0 &&
|
|
89
|
+
transcript?.length > 0 &&
|
|
90
|
+
selectedResponse?.recording?.url
|
|
89
91
|
? transcript
|
|
90
92
|
: undefined
|
|
91
93
|
}
|
|
@@ -107,7 +109,7 @@ const DialogueUnscripted = ({
|
|
|
107
109
|
<AnalysisButton
|
|
108
110
|
disabled={
|
|
109
111
|
!(
|
|
110
|
-
analysis?.models?.length > 0
|
|
112
|
+
analysis?.models?.length > 0 &&
|
|
111
113
|
selectedResponse?.recording?.url
|
|
112
114
|
)
|
|
113
115
|
}
|
|
@@ -101,7 +101,7 @@ const QuizScripted = ({
|
|
|
101
101
|
{analysis?.models?.length > 0 && (
|
|
102
102
|
<AnalysisButton
|
|
103
103
|
disabled={
|
|
104
|
-
!(analysis?.models?.length > 0
|
|
104
|
+
!(analysis?.models?.length > 0 && selectedResponse?.recording)
|
|
105
105
|
}
|
|
106
106
|
onClick={() => {
|
|
107
107
|
setToggle({
|
|
@@ -77,7 +77,9 @@ const QuizUnscripted = ({
|
|
|
77
77
|
<QuestionSectionWithAnalysis>
|
|
78
78
|
<Response
|
|
79
79
|
response={
|
|
80
|
-
analysis?.models?.length > 0 &&
|
|
80
|
+
analysis?.models?.length > 0 &&
|
|
81
|
+
transcript?.length > 0 &&
|
|
82
|
+
selectedResponse?.recording
|
|
81
83
|
? transcript
|
|
82
84
|
: undefined
|
|
83
85
|
}
|
|
@@ -98,7 +100,7 @@ const QuizUnscripted = ({
|
|
|
98
100
|
{analysis?.models?.length > 0 && (
|
|
99
101
|
<AnalysisButton
|
|
100
102
|
disabled={
|
|
101
|
-
!(analysis?.models?.length > 0
|
|
103
|
+
!(analysis?.models?.length > 0 && selectedResponse?.recording)
|
|
102
104
|
}
|
|
103
105
|
onClick={() => {
|
|
104
106
|
setToggle({
|