Skip to content

Commit

Permalink
fix: unnecessary score in question list item
Browse files Browse the repository at this point in the history
  • Loading branch information
drodil committed Oct 16, 2024
1 parent edcda4b commit 570cdec
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const QuestionListItem = (props: QuestionListItemProps) => {

const [correctAnswer, setCorrectAnswer] = useState(question.correctAnswer);
const [answersCount, setAnswersCount] = useState(question.answersCount);
const [score, setScore] = useState(question.score);
const [views, setViews] = useState(question.views);
const { t } = useTranslation();

Expand All @@ -40,7 +39,6 @@ export const QuestionListItem = (props: QuestionListItemProps) => {
if (lastSignal?.type === 'question_stats') {
setCorrectAnswer(lastSignal.correctAnswer);
setAnswersCount(lastSignal.answersCount);
setScore(lastSignal.score);
setViews(lastSignal.views);
}
}, [lastSignal]);
Expand Down

0 comments on commit 570cdec

Please sign in to comment.