2
0

🐛 (results) Fix result modal content display

This commit is contained in:
Baptiste Arnaud
2023-09-19 11:47:41 +02:00
parent 69ef41b534
commit 2ce63f5d06

View File

@ -36,14 +36,14 @@ export const ResultModal = ({ resultId, onClose }: Props) => {
<ModalCloseButton />
<ModalBody as={Stack} p="10" spacing="10">
{resultHeader.map((header) =>
result && result[header.label] ? (
result && result[header.id] ? (
<Stack key={header.id} spacing="4">
<HStack>
<HeaderIcon header={header} />
<Heading fontSize="md">{header.label}</Heading>
</HStack>
<Text whiteSpace="pre-wrap" textAlign="justify">
{getHeaderValue(result[header.label])}
{getHeaderValue(result[header.id])}
</Text>
</Stack>
) : null