From 58b5332b67654c8672cf82c0b89975aeb42e1466 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Thu, 26 Jan 2023 21:09:13 +0530 Subject: [PATCH] Improving getMemoizedMetadataContractName selector (#17432) --- ui/selectors/selectors.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/selectors/selectors.js b/ui/selectors/selectors.js index 577d32d0e..d8038ccf3 100644 --- a/ui/selectors/selectors.js +++ b/ui/selectors/selectors.js @@ -831,8 +831,9 @@ export const getMemoizedMetadataContractName = createDeepEqualSelector( getTokenList, (_tokenList, address) => address, (tokenList, address) => { + const checksumHexAddress = toChecksumHexAddress(address); const entry = Object.values(tokenList).find((identity) => - isEqualCaseInsensitive(identity.address, toChecksumHexAddress(address)), + isEqualCaseInsensitive(identity.address, checksumHexAddress), ); return entry && entry.name !== '' ? entry.name : ''; },