abck fix
This commit is contained in:
parent
b50a00a65f
commit
e036011998
2 changed files with 6 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ export class RoomsService {
|
|||
}
|
||||
|
||||
// Не возвращаем пароль в ответе
|
||||
const { password, ...roomWithoutPassword } = room;
|
||||
const { password: _, ...roomWithoutPassword } = room;
|
||||
return roomWithoutPassword;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -58,6 +58,11 @@ const VoicePlayer = ({
|
|||
|
||||
React.useEffect(() => {
|
||||
if (autoPlay && isEnabled && roomId && questionId && contentType) {
|
||||
// Validate answerId for answer contentType
|
||||
if (contentType === 'answer' && !answerId) {
|
||||
console.warn('[VoicePlayer] autoPlay: answerId is required for answer contentType');
|
||||
return;
|
||||
}
|
||||
speak({ roomId, questionId, contentType, answerId });
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
|
|
|||
Loading…
Reference in a new issue