mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix token details icon when 'Use Token Detection' is enabled (#13726)
This commit is contained in:
parent
f49e5076f3
commit
d4f694c49f
@ -35,8 +35,9 @@ export default function TokenDetailsPage() {
|
||||
const useTokenDetection = useSelector(getUseTokenDetection);
|
||||
|
||||
const tokenAddress = history?.location?.state?.tokenAddress;
|
||||
|
||||
const tokenMetadata = tokenList?.[tokenAddress];
|
||||
const tokenMetadata = Object.values(tokenList).find((token) =>
|
||||
isEqualCaseInsensitive(token.address, tokenAddress),
|
||||
);
|
||||
const fileName = tokenMetadata?.iconUrl;
|
||||
const imagePath = useTokenDetection
|
||||
? fileName
|
||||
|
Loading…
Reference in New Issue
Block a user