Skip to content

Commit 89f39df

Browse files
committedDec 7, 2024
fix: bug on voting history tab where invisible component would appear
1 parent dc73747 commit 89f39df

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎web/src/pages/Cases/CaseDetails/Voting/VotingHistory.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,12 @@ const VotingHistory: React.FC<{ arbitrable?: `0x${string}`; isQuestion: boolean
8484

8585
return (
8686
<Container>
87-
<RulingAndRewardsIndicators
88-
ruled={Boolean(disputeData?.dispute?.ruled)}
89-
jurorRewardsDispersed={jurorRewardsDispersed}
90-
/>
87+
{Boolean(disputeData?.dispute?.ruled) || jurorRewardsDispersed ? (
88+
<RulingAndRewardsIndicators
89+
ruled={Boolean(disputeData?.dispute?.ruled)}
90+
jurorRewardsDispersed={jurorRewardsDispersed}
91+
/>
92+
) : null}
9193
<Header>
9294
<StyledTitle>Voting History</StyledTitle>
9395
<HowItWorks

0 commit comments

Comments
 (0)