Skip to content

Commit 0ea27b4

Browse files
committed
chore(web): rabbit-feedback
1 parent 9ccf16b commit 0ea27b4

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

web/src/pages/Resolver/Landing/CreationCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@ const StyledP = styled.p`
6262
const StyledRadio = styled(Radio)`
6363
align-self: center;
6464
padding-left: 16px;
65-
> input {
66-
display: none;
67-
}
65+
6866
> span {
6967
transform: translateY(-50%);
7068
}

web/src/pages/Resolver/Preview/BatchCreationCard.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -164,13 +164,15 @@ const BatchCreationCard: React.FC = () => {
164164
<Info>
165165
<Label>Total cost:</Label>
166166
<Value>{formatETH(BigInt(disputeData.arbitrationCost ?? 0) * BigInt(localBatchSize))} ETH </Value>
167-
<Label>
168-
~
169-
{formatUSD(
170-
Number(formatUnitsWei(BigInt(disputeData.arbitrationCost ?? 0) * BigInt(localBatchSize))) *
171-
(coinPrice ?? 0)
172-
)}
173-
</Label>
167+
{!isUndefined(coinPrice) ? (
168+
<Label>
169+
~
170+
{formatUSD(
171+
Number(formatUnitsWei(BigInt(disputeData.arbitrationCost ?? 0) * BigInt(localBatchSize))) *
172+
coinPrice
173+
)}
174+
</Label>
175+
) : null}
174176
</Info>
175177
</InfosContainer>
176178
</BottomContent>

0 commit comments

Comments
 (0)