Skip to content

Commit

Permalink
Fix TypeError if local storage is cleared (#1594)
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis authored Nov 15, 2024
1 parent b7fc0e0 commit 8c43cae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
Expand Down

0 comments on commit 8c43cae

Please sign in to comment.