fix answer scores table serial number

This commit is contained in:
Ilgeldi 2025-02-03 14:22:26 +05:00
parent 7f59cab5c5
commit aba13f527f
1 changed files with 2 additions and 3 deletions

View File

@ -55,7 +55,6 @@ const QuizWinnerTable = ({ quizId, quizFinished, smsNumber }: IProps) => {
});
}, [quizId]);
// useEffect(() => {
// let socket: WebSocket | null = null;
// let reconnectTimeout: NodeJS.Timeout | null = null;
// let pingInterval: NodeJS.Timeout | null = null;
@ -282,9 +281,9 @@ const QuizWinnerTable = ({ quizId, quizFinished, smsNumber }: IProps) => {
? 'text-fillRed'
: 'text-textLight'
}`}>
{matchingAnswer && matchingAnswer.serial_number_for_correct !== 0
{matchingAnswer && matchingAnswer.score !== 0
? matchingAnswer.serial_number_for_correct
: matchingAnswer && matchingAnswer?.serial_number_for_correct === 0
: matchingAnswer && matchingAnswer?.score === 0
? 'X'
: '0'}
</span>