fixes for swap page

This commit is contained in:
tjs 2022-04-04 11:48:22 -04:00
parent 9f0a4a04ea
commit 811c56b0af
1 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ const JupiterForm: FunctionComponent = () => {
const routeOptionTokens = const routeOptionTokens =
routeOptions?.map((address) => { routeOptions?.map((address) => {
return tokens.find((t) => { return tokens.find((t) => {
return t.address === address return t?.address === address
}) })
}) ?? [] }) ?? []
@ -354,7 +354,7 @@ const JupiterForm: FunctionComponent = () => {
} }
const sortedTokenMints = sortBy(tokens, (token) => { const sortedTokenMints = sortBy(tokens, (token) => {
return token.symbol.toLowerCase() return token?.symbol.toLowerCase()
}) })
const outAmountUi = selectedRoute const outAmountUi = selectedRoute