Skip to content

Commit a97636c

Browse files
authored
fix: set right number of levels for ratings (#68)
1 parent 8255256 commit a97636c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/modules/common/LikertScale.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const LikertScale = (props: LikertScaleProps): JSX.Element => {
6767
emptyIcon={<RadioButtonUncheckedIcon fontSize="inherit" />}
6868
onChange={handleChange}
6969
highlightSelectedOnly
70+
max={levels}
7071
/>
7172
<Label variant="caption">{maxLabel}</Label>
7273
</Stack>

src/modules/common/response/evaluation/UsefulnessNoveltyRating.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,14 @@ const UsefulnessNoveltyRating: FC<{
128128
onChange={(rating) => handleRatingChange('novelty', rating)}
129129
minLabel={t('COMMON')}
130130
maxLabel={t('NOVEL')}
131-
levels={7}
131+
levels={5}
132132
value={noveltyRating}
133133
/>
134134
<LikertScale
135135
onChange={(rating) => handleRatingChange('relevance', rating)}
136136
minLabel={t('USELESS')}
137137
maxLabel={t('USEFUL')}
138-
levels={7}
138+
levels={5}
139139
value={usefulnessRating}
140140
/>
141141
</Container>

0 commit comments

Comments
 (0)