Add changes

This commit is contained in:
André 2024-02-13 10:40:58 -03:00
parent 2c0e6c00af
commit 1f4ac0bde8

View File

@ -53,12 +53,13 @@ const ChatPollContent: React.FC<ChatPollContentProps> = ({
}) => {
const pollData = JSON.parse(string) as unknown;
assertAsMetadata(pollData);
const height = pollData.answers.length * 50;
return (
<div data-test="chatPollMessageText">
<Styled.PollText>
{pollData.questionText}
</Styled.PollText>
<ResponsiveContainer width="90%" height={500}>
<ResponsiveContainer width="90%" height={height}>
<BarChart
data={pollData.answers}
layout="vertical"