We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df6b21f commit 4e0fa67Copy full SHA for 4e0fa67
wallets/react/src/hub/utils.ts
@@ -125,10 +125,12 @@ export function checkHubStateAndTriggerEvents(
125
hasNetworkChanged = true;
126
}
127
128
+ // TODO: `accounts` has been frozen, we should check and find where object.freeze() is calling.
129
+
130
// Check for accounts
131
if (
- previousNamespaceState.accounts?.sort().toString() !==
- currentNamespaceState.accounts?.sort().toString()
132
+ previousNamespaceState.accounts?.slice().sort().toString() !==
133
+ currentNamespaceState.accounts?.slice().sort().toString()
134
) {
135
if (currentNamespaceState.accounts) {
136
const formattedAddresses = currentNamespaceState.accounts.map(
0 commit comments