|
|
@ -35,8 +35,9 @@ export default function TokenDetailsPage() { |
|
|
|
const useTokenDetection = useSelector(getUseTokenDetection); |
|
|
|
const useTokenDetection = useSelector(getUseTokenDetection); |
|
|
|
|
|
|
|
|
|
|
|
const tokenAddress = history?.location?.state?.tokenAddress; |
|
|
|
const tokenAddress = history?.location?.state?.tokenAddress; |
|
|
|
|
|
|
|
const tokenMetadata = Object.values(tokenList).find((token) => |
|
|
|
const tokenMetadata = tokenList?.[tokenAddress]; |
|
|
|
isEqualCaseInsensitive(token.address, tokenAddress), |
|
|
|
|
|
|
|
); |
|
|
|
const fileName = tokenMetadata?.iconUrl; |
|
|
|
const fileName = tokenMetadata?.iconUrl; |
|
|
|
const imagePath = useTokenDetection |
|
|
|
const imagePath = useTokenDetection |
|
|
|
? fileName |
|
|
|
? fileName |
|
|
|