Skip to content

Commit

Permalink
fix: Swap for token pair mode (#566)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhyco authored Jun 14, 2024
1 parent 5347ea9 commit 4b43d16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-mugs-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@coinbase/onchainkit": patch
---

- **fix**: swap token pair mode. By @kyhyco #566
4 changes: 1 addition & 3 deletions src/swap/components/SwapAmountInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ export function SwapAmountInput({
token={selectedToken}
/>
)}
{selectedToken && !filteredTokens && (
<TokenChip token={selectedToken} />
)}
{token && !filteredTokens && <TokenChip token={token} />}
</div>
<div className="mt-4 flex w-full justify-between">
<TextLabel2>~$0.0</TextLabel2>
Expand Down

0 comments on commit 4b43d16

Please sign in to comment.