From 320558b1d80c930cde475ce55cf99b22738d2e5e Mon Sep 17 00:00:00 2001 From: Michael Merz Date: Sat, 17 Jun 2023 10:41:21 -0400 Subject: [PATCH] feat: filter out non-whitelisted tokens --- src/txs/swap/TFMSwapContext.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/txs/swap/TFMSwapContext.tsx b/src/txs/swap/TFMSwapContext.tsx index d7947e9d3..2bbe9a1c0 100644 --- a/src/txs/swap/TFMSwapContext.tsx +++ b/src/txs/swap/TFMSwapContext.tsx @@ -127,7 +127,8 @@ const TFMSwapContext = ({ children }: PropsWithChildren<{}>) => { ...readNativeDenom(token), token: ibc, balance: getAmount(bankBalance, token), - })), + })) + .filter((entry) => (entry.isNonWhitelisted ? false : true)), ], }