From 4b43d1644cf77b509d67f26ac2b33508014c06fd Mon Sep 17 00:00:00 2001 From: Ky Lee <132851666+kyhyco@users.noreply.github.com> Date: Fri, 14 Jun 2024 12:40:39 -0700 Subject: [PATCH] fix: Swap for token pair mode (#566) --- .changeset/tiny-mugs-roll.md | 5 +++++ src/swap/components/SwapAmountInput.tsx | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changeset/tiny-mugs-roll.md diff --git a/.changeset/tiny-mugs-roll.md b/.changeset/tiny-mugs-roll.md new file mode 100644 index 0000000000..01790e5a5d --- /dev/null +++ b/.changeset/tiny-mugs-roll.md @@ -0,0 +1,5 @@ +--- +"@coinbase/onchainkit": patch +--- + +- **fix**: swap token pair mode. By @kyhyco #566 diff --git a/src/swap/components/SwapAmountInput.tsx b/src/swap/components/SwapAmountInput.tsx index 7adf70a89b..ef28646506 100644 --- a/src/swap/components/SwapAmountInput.tsx +++ b/src/swap/components/SwapAmountInput.tsx @@ -128,9 +128,7 @@ export function SwapAmountInput({ token={selectedToken} /> )} - {selectedToken && !filteredTokens && ( - - )} + {token && !filteredTokens && }
~$0.0