1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +01:00

Fix domain selector (#8574)

* fix domain selector

Co-authored-by: Mark Stacey <markjstacey@gmail.com>
This commit is contained in:
Erik Marks 2020-05-12 09:29:45 -07:00 committed by GitHub
parent 3b1794f77b
commit 54b423d407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -192,5 +192,5 @@ function getAccountsCaveatFromPermission (accountsPermission = {}) {
}
function domainSelector (state, origin) {
return origin && state.metamask?.domains[origin]
return origin && state.metamask.domains?.[origin]
}