diff --git a/apps/mvp/src/components/ConnectWalletsFlow.vue b/apps/mvp/src/components/ConnectWalletsFlow.vue index 5a554081c..5b62ece8c 100644 --- a/apps/mvp/src/components/ConnectWalletsFlow.vue +++ b/apps/mvp/src/components/ConnectWalletsFlow.vue @@ -40,7 +40,7 @@ const { getEthersLedgerAddresses } = useLedger() const { getEthersTrezorAddresses } = useTrezor() const { user } = useUser() const { detectActiveNetwork, switchEthersNetwork } = useWallets() -const { connectWalletConnectV2 } = useWalletConnect() +const { connectWalletConnectV2, walletConnectSelectedAccount } = useWalletConnect() // const { installedWallets, detectInstalledWalletProviders } = useWallets() // eslint-disable-next-line no-undef @@ -104,6 +104,7 @@ async function handleConfirmCreateAccountWithExistingSecondary() { */ async function selectAddress(address: string, pathIndex?: number): Promise { selectedAddress.value = address + console.log("selectedAddress.value :>> ", selectedAddress.value) flowState.value = "loading" const loginCredentials: LoginCredentials = pathIndex !== undefined ? @@ -226,6 +227,12 @@ onUnmounted(() => { flowState.value = "select_provider" } }) + +watch(walletConnectSelectedAccount, () => { + if (selectedProvider.value === "WalletConnect") { + walletProviderAddresses.value = walletConnectSelectedAccount.value as CryptoAddress[] + } +})