Skip to content

Commit 004bde0

Browse files
authored
Merge pull request #753 from relayprotocol/joseph/fe-7866-not-showing-price-impact-when-usd-mode-is-enabled
Fix not showing price impact when usd mode is enabled
2 parents 369dddc + b2d6c8c commit 004bde0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/beige-tips-yell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@relayprotocol/relay-kit-ui': patch
3+
---
4+
5+
Always show price impact regardless of input mode

packages/ui/src/components/widgets/SwapWidget/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,8 +1506,7 @@ const SwapWidget: FC<SwapWidgetProps> = ({
15061506
'$0.00'
15071507
)}
15081508
</Text>
1509-
{!isUsdInputMode &&
1510-
toToken &&
1509+
{toToken &&
15111510
quote?.details?.currencyOut?.amountUsd &&
15121511
quote?.details?.currencyOut?.amountUsd !== '0' &&
15131512
!isFetchingQuote &&

0 commit comments

Comments
 (0)