Skip to content

Commit

Permalink
show price impact
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Apr 16, 2024
1 parent 4ee73f8 commit 9857272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SwapWidget/SwapDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export const SwapDetails = ({
"[&_dd]:text-end [&_dd]:tabular-nums",
)}
>
{priceImpactPercent && route.usdAmountIn && route.usdAmountOut ? (
{priceImpactPercent ? (
<>
<dt className={priceImpactThresholdReached ? "text-red-500" : ""}>Price Impact</dt>
<dd className={priceImpactThresholdReached ? "text-red-500" : ""}>{formatPercent(priceImpactPercent)}</dd>
Expand Down

0 comments on commit 9857272

Please sign in to comment.