Skip to content

Commit d3cd9a8

Browse files
committed
fix: issue of Wallet service composable is not updated when web3auth context changes
1 parent 30929e4 commit d3cd9a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/modal/src/vue/WalletServicesInnerProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const WalletServicesInnerProvider = defineComponent({
2828
watch(isConnected, (newIsConnected) => {
2929
if (newIsConnected) {
3030
const plugin = getPlugin(EVM_PLUGINS.WALLET_SERVICES) as WalletServicesPluginType;
31-
if (!walletServicesPlugin.value) walletServicesPlugin.value = plugin;
31+
walletServicesPlugin.value = plugin;
3232
// when rehydrating, the connectedListener may be registered after the connected event is emitted, we need to check the status here
3333
if (walletServicesPlugin.value?.status === CONNECTOR_STATUS.CONNECTED) ready.value = true;
3434
}

packages/no-modal/src/vue/WalletServicesInnerProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const WalletServicesInnerProvider = defineComponent({
2828
watch(isConnected, (newIsConnected) => {
2929
if (newIsConnected) {
3030
const plugin = getPlugin(EVM_PLUGINS.WALLET_SERVICES) as WalletServicesPluginType;
31-
if (!walletServicesPlugin.value) walletServicesPlugin.value = plugin;
31+
walletServicesPlugin.value = plugin;
3232
// when rehydrating, the connectedListener may be registered after the connected event is emitted, we need to check the status here
3333
if (walletServicesPlugin.value?.status === CONNECTOR_STATUS.CONNECTED) ready.value = true;
3434
}

0 commit comments

Comments
 (0)