fix answer scores table serial number
This commit is contained in:
parent
7f59cab5c5
commit
aba13f527f
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue