From 811c56b0af390cda398b9fbca57dc5643db1a9ef Mon Sep 17 00:00:00 2001 From: tjs Date: Mon, 4 Apr 2022 11:48:22 -0400 Subject: [PATCH] fixes for swap page --- components/JupiterForm.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/JupiterForm.tsx b/components/JupiterForm.tsx index ddad1419..4af8deeb 100644 --- a/components/JupiterForm.tsx +++ b/components/JupiterForm.tsx @@ -235,7 +235,7 @@ const JupiterForm: FunctionComponent = () => { const routeOptionTokens = routeOptions?.map((address) => { return tokens.find((t) => { - return t.address === address + return t?.address === address }) }) ?? [] @@ -354,7 +354,7 @@ const JupiterForm: FunctionComponent = () => { } const sortedTokenMints = sortBy(tokens, (token) => { - return token.symbol.toLowerCase() + return token?.symbol.toLowerCase() }) const outAmountUi = selectedRoute