From af73ec370eb51d7fc6c0593b2a844d403e1a58a2 Mon Sep 17 00:00:00 2001 From: Sven Date: Tue, 2 Jul 2024 16:14:32 +0200 Subject: [PATCH] fix socialWindow issue --- packages/core/src/controllers/AccountController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/controllers/AccountController.ts b/packages/core/src/controllers/AccountController.ts index a9ac5b3aec..eece399f7b 100644 --- a/packages/core/src/controllers/AccountController.ts +++ b/packages/core/src/controllers/AccountController.ts @@ -9,7 +9,7 @@ import type { W3mFrameTypes } from '@web3modal/wallet' import { ChainController } from './ChainController.js' import type { Chain } from '@web3modal/common' import { NetworkController } from './NetworkController.js' -import { proxy } from 'valtio' +import { proxy, ref } from 'valtio' // -- Types --------------------------------------------- // export interface AccountControllerState { @@ -141,7 +141,7 @@ export const AccountController = { setSocialWindow(socialWindow: AccountControllerState['socialWindow'], chain?: Chain) { if (socialWindow) { - ChainController.setAccountProp('socialWindow', socialWindow, chain) + ChainController.setAccountProp('socialWindow', ref(socialWindow), chain) } },