Skip to content

Commit 51cf1ac

Browse files
committed
fix: parse Markdown in the voting component, not just in the voting history
1 parent e56f4b1 commit 51cf1ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/pages/Cases/CaseDetails/Voting/Classic.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { wrapWithToast } from "utils/wrapWithToast";
88
import { useDisputeTemplate } from "queries/useDisputeTemplate";
99
import { useDisputeDetailsQuery } from "queries/useDisputeDetailsQuery";
1010
import { EnsureChain } from "components/EnsureChain";
11+
import ReactMarkdown from "react-markdown";
1112

1213
const Container = styled.div`
1314
width: 100%;
@@ -90,7 +91,7 @@ const Classic: React.FC<IClassic> = ({ arbitrable, voteIDs, setIsOpen }) => {
9091
return id ? (
9192
<Container>
9293
<MainContainer>
93-
<h1>{disputeTemplate?.question}</h1>
94+
<ReactMarkdown>{disputeTemplate.question}</ReactMarkdown>
9495
<StyledTextarea
9596
value={justification}
9697
onChange={(e) => setJustification(e.target.value)}

0 commit comments

Comments
 (0)