Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yivlad committed Jun 13, 2024
1 parent 2455792 commit 664eda6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/app/src/config/wagmi/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export function createWagmiStorage(): ReturnType<typeof createStorage> {
return storage
}

// explicitly removes unsupported connections and chainId from the store
// this avoids auto reconnect to sandbox network
function wrapGetItem(defaultStorage: ReturnType<typeof createStorage>): any {
return async function getItem(key: 'recentConnectorId' | 'store'): Promise<any> {
const originalValue = (await defaultStorage.getItem(key as any)) as any
Expand Down

0 comments on commit 664eda6

Please sign in to comment.