Fix TypeError if local storage is cleared (#1594)

This commit is contained in:
ekzyis 2024-11-15 19:02:02 +01:00 committed by GitHub
parent b7fc0e0e74
commit 8c43caed80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}
}