Skip to content

Commit abe1bb0

Browse files
committed
fixup! Work around LG-5601
1 parent 105301d commit abe1bb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/compass-components/src/components/modals/confirmation-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function ConfirmationModal({
1717
}: ConfirmationModalProps): React.ReactElement {
1818
return (
1919
<LeafyGreenConfirmationModal {...props}>
20-
<Body as="div">{children}</Body>
20+
{props.open && <Body as="div">{children}</Body>}
2121
</LeafyGreenConfirmationModal>
2222
);
2323
}

packages/compass-components/src/components/modals/marketing-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function MarketingModal({
1616
}: MarketingModalProps): React.ReactElement {
1717
return (
1818
<LeafyGreenMarketingModal {...props}>
19-
<Body as="div">{children}</Body>
19+
{props.open && <Body as="div">{children}</Body>}
2020
</LeafyGreenMarketingModal>
2121
);
2222
}

0 commit comments

Comments
 (0)