🐛 (results) Fix result modal content display
This commit is contained in:
@@ -36,14 +36,14 @@ export const ResultModal = ({ resultId, onClose }: Props) => {
|
|||||||
<ModalCloseButton />
|
<ModalCloseButton />
|
||||||
<ModalBody as={Stack} p="10" spacing="10">
|
<ModalBody as={Stack} p="10" spacing="10">
|
||||||
{resultHeader.map((header) =>
|
{resultHeader.map((header) =>
|
||||||
result && result[header.label] ? (
|
result && result[header.id] ? (
|
||||||
<Stack key={header.id} spacing="4">
|
<Stack key={header.id} spacing="4">
|
||||||
<HStack>
|
<HStack>
|
||||||
<HeaderIcon header={header} />
|
<HeaderIcon header={header} />
|
||||||
<Heading fontSize="md">{header.label}</Heading>
|
<Heading fontSize="md">{header.label}</Heading>
|
||||||
</HStack>
|
</HStack>
|
||||||
<Text whiteSpace="pre-wrap" textAlign="justify">
|
<Text whiteSpace="pre-wrap" textAlign="justify">
|
||||||
{getHeaderValue(result[header.label])}
|
{getHeaderValue(result[header.id])}
|
||||||
</Text>
|
</Text>
|
||||||
</Stack>
|
</Stack>
|
||||||
) : null
|
) : null
|
||||||
|
|||||||
Reference in New Issue
Block a user