diff --git a/components/SwapTokenInfo.tsx b/components/SwapTokenInfo.tsx index d121aeec..efdc4a75 100644 --- a/components/SwapTokenInfo.tsx +++ b/components/SwapTokenInfo.tsx @@ -201,8 +201,8 @@ const SwapTokenInfo: FunctionComponent = ({ {inputTokenInfo && outputTokenInfo ? (
{['usd-coin', 'tether'].includes(baseTokenId) - ? `${inputTokenInfo.symbol.toUpperCase()}/${outputTokenInfo.symbol.toUpperCase()}` - : `${outputTokenInfo.symbol.toUpperCase()}/${inputTokenInfo.symbol.toUpperCase()}`} + ? `${inputTokenInfo?.symbol?.toUpperCase()}/${outputTokenInfo?.symbol?.toUpperCase()}` + : `${outputTokenInfo?.symbol?.toUpperCase()}/${inputTokenInfo?.symbol?.toUpperCase()}`}
) : null} {mouseData ? ( diff --git a/components/SwapTokenInsights.tsx b/components/SwapTokenInsights.tsx index 57980da9..3caad79c 100644 --- a/components/SwapTokenInsights.tsx +++ b/components/SwapTokenInsights.tsx @@ -216,7 +216,7 @@ const SwapTokenInsights = ({ formState, jupiterTokens, setOutputToken }) => { )}
- {insight.symbol.toUpperCase()} + {insight?.symbol?.toUpperCase()}
{insight.name}