diff --git a/ui/app/selectors/selectors.js b/ui/app/selectors/selectors.js index 480682f6f204..c29dcb35f27d 100644 --- a/ui/app/selectors/selectors.js +++ b/ui/app/selectors/selectors.js @@ -465,7 +465,7 @@ function getAddressConnectedDomainMap (state) { const exposedAccountCaveat = caveats.find(caveat => caveat.name === 'exposedAccounts') if (exposedAccountCaveat && exposedAccountCaveat.value && exposedAccountCaveat.value.length) { exposedAccountCaveat.value.forEach(address => { - const nameToRender = name ? name : domainKey + const nameToRender = name || domainKey addressConnectedIconMap[address] = addressConnectedIconMap[address] ? { ...addressConnectedIconMap[address], [domainKey]: { icon, name: nameToRender } } : { [domainKey]: { icon, name: nameToRender } } @@ -543,7 +543,7 @@ function getRenderablePermissionsDomains (state) { : '' return [ ...acc, { - name: name ? name : domainKey, + name: name || domainKey, secondaryName: name ? domainKey : '', icon, key: domainKey,