Skip to content

Commit 1db8170

Browse files
committed
chore: nitpick space in v2 beta disputes
1 parent c65acd9 commit 1db8170

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

web/src/components/DisputePreview/DisputeContext.tsx

+13-8
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,21 @@ export const DisputeContext: React.FC<IDisputeContext> = ({ disputeDetails, isRp
6565
return (
6666
<>
6767
<StyledH1>{isUndefined(disputeDetails) ? <StyledSkeleton /> : (disputeDetails?.title ?? errMsg)}</StyledH1>
68-
{!isUndefined(disputeDetails) && (
68+
{!isUndefined(disputeDetails) ? (
6969
<>
70-
<ReactMarkdownWrapper>
71-
<ReactMarkdown>{disputeDetails?.question}</ReactMarkdown>
72-
</ReactMarkdownWrapper>
73-
<ReactMarkdownWrapper>
74-
<ReactMarkdown>{disputeDetails?.description}</ReactMarkdown>
75-
</ReactMarkdownWrapper>
70+
{disputeDetails?.question?.trim() ? (
71+
<ReactMarkdownWrapper>
72+
<ReactMarkdown>{disputeDetails.question}</ReactMarkdown>
73+
</ReactMarkdownWrapper>
74+
) : null}
75+
{disputeDetails?.description?.trim() ? (
76+
<ReactMarkdownWrapper>
77+
<ReactMarkdown>{disputeDetails.description}</ReactMarkdown>
78+
</ReactMarkdownWrapper>
79+
) : null}
7680
</>
77-
)}
81+
) : null}
82+
7883
{isUndefined(disputeDetails?.frontendUrl) ? null : (
7984
<ExternalLink href={disputeDetails?.frontendUrl} target="_blank" rel="noreferrer">
8085
Go to arbitrable

0 commit comments

Comments
 (0)