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
|
||||
// from any window with the same origin
|
||||
const handleStorage = (event) => {
|
||||
if (event.key.startsWith(getStorageKey(''))) {
|
||||
if (event.key?.startsWith(getStorageKey(''))) {
|
||||
loadWallets()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue