fix getTargetDomainMetadata selector

feature/default_network_editable
Erik Marks 5 years ago
parent 53e88b06b6
commit d79bf8db2e
  1. 5
      ui/app/selectors/selectors.js

@ -292,6 +292,11 @@ export function getTargetDomainMetadata (state, request, defaultOrigin) {
const { metadata: requestMetadata = {} } = request || {}
const origin = requestMetadata.origin || defaultOrigin
if (!origin) {
return null
}
const hostname = (new URL(origin).hostname)
const targetDomainMetadata = (domainMetadata[origin] || { name: hostname, icon: null })
targetDomainMetadata.origin = origin

Loading…
Cancel
Save