fix issue with unloaded swap token info
This commit is contained in:
parent
5736582956
commit
609ba989b6
|
@ -201,8 +201,8 @@ const SwapTokenInfo: FunctionComponent<SwapTokenInfoProps> = ({
|
|||
{inputTokenInfo && outputTokenInfo ? (
|
||||
<div className="text-th-fgd-3 text-sm">
|
||||
{['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()}`}
|
||||
</div>
|
||||
) : null}
|
||||
{mouseData ? (
|
||||
|
|
|
@ -216,7 +216,7 @@ const SwapTokenInsights = ({ formState, jupiterTokens, setOutputToken }) => {
|
|||
)}
|
||||
<div className="text-left">
|
||||
<div className="font-bold">
|
||||
{insight.symbol.toUpperCase()}
|
||||
{insight?.symbol?.toUpperCase()}
|
||||
</div>
|
||||
<div className="text-th-fgd-3 text-xs">
|
||||
{insight.name}
|
||||
|
|
Loading…
Reference in New Issue