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