Skip to content

Commit 93c38ee

Browse files
committed
fix regression for lang choice
1 parent 7706893 commit 93c38ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/app/collaboration/components/question.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ const Question = ({
152152
});
153153

154154
client.subscribe("/user/queue/language", (message) => {
155-
const messageReceived = message.body;
155+
const messageReceived: SingleChatLogApiResponse = JSON.parse(message.body);
156156
isLanguageChangeActive.current = false;
157-
setLanguage(messageReceived);
157+
setLanguage(messageReceived.message);
158158
Swal.fire({
159159
title: "Language changed by your collaborator!",
160160
icon: "success",
@@ -407,7 +407,7 @@ const Question = ({
407407
</div>
408408
)}
409409
</span>
410-
<div className="row-span-1 flex flex-col bg-primary-800 rounded-md h-full overflow-y-auto">
410+
<div className="row-span-1 flex flex-col bg-primary-800 rounded-md h-full max-h-[90%] overflow-y-auto">
411411
{isLoading && (
412412
<div className="flex justify-center p-2">
413413
<MoonLoader size={20} />

0 commit comments

Comments
 (0)