Fix TypeError if local storage is cleared (#1594)
This commit is contained in:
parent
b7fc0e0e74
commit
8c43caed80
@ -45,7 +45,7 @@ function useLocalWallets () {
|
|||||||
// listen for changes to any wallet config in local storage
|
// listen for changes to any wallet config in local storage
|
||||||
// from any window with the same origin
|
// from any window with the same origin
|
||||||
const handleStorage = (event) => {
|
const handleStorage = (event) => {
|
||||||
if (event.key.startsWith(getStorageKey(''))) {
|
if (event.key?.startsWith(getStorageKey(''))) {
|
||||||
loadWallets()
|
loadWallets()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user