Skip to content

Commit

Permalink
Fix domain selector (#8574)
Browse files Browse the repository at this point in the history
* fix domain selector

Co-authored-by: Mark Stacey <[email protected]>
  • Loading branch information
rekmarks and Gudahtt authored May 12, 2020
1 parent 3b1794f commit 54b423d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/selectors/permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,5 @@ function getAccountsCaveatFromPermission (accountsPermission = {}) {
}

function domainSelector (state, origin) {
return origin && state.metamask?.domains[origin]
return origin && state.metamask.domains?.[origin]
}

0 comments on commit 54b423d

Please sign in to comment.