mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-23 02:10:12 +01:00
Fix domain selector (#8574)
* fix domain selector Co-authored-by: Mark Stacey <markjstacey@gmail.com>
This commit is contained in:
parent
3b1794f77b
commit
54b423d407
@ -192,5 +192,5 @@ function getAccountsCaveatFromPermission (accountsPermission = {}) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function domainSelector (state, origin) {
|
function domainSelector (state, origin) {
|
||||||
return origin && state.metamask?.domains[origin]
|
return origin && state.metamask.domains?.[origin]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user