Skip to content

Commit

Permalink
get initial connectedAdapterName
Browse files Browse the repository at this point in the history
  • Loading branch information
lionellbriones committed Jan 8, 2025
1 parent 3f01851 commit b42a6ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion demo/vue-app-new/src/components/AppDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ const { userInfo, isConnected, provider, switchChain, addAndSwitchChain, web3Aut
const connectedAdapterName = ref("");
const isDisplay = computed(() => {
const finalConnectedAdapterName = connectedAdapterName.value || web3Auth.value?.connectedAdapterName;
return {
dashboard: isConnected.value,
ethServices: formData.chainNamespace === CHAIN_NAMESPACES.EIP155,
solServices: formData.chainNamespace === CHAIN_NAMESPACES.SOLANA,
walletServices:
formData.chainNamespace === CHAIN_NAMESPACES.EIP155 && formData.walletPlugin.enable && connectedAdapterName.value === WALLET_ADAPTERS.AUTH,
formData.chainNamespace === CHAIN_NAMESPACES.EIP155 && formData.walletPlugin.enable && finalConnectedAdapterName === WALLET_ADAPTERS.AUTH,
nftCheckoutServices: formData.chainNamespace === CHAIN_NAMESPACES.EIP155 && formData.nftCheckoutPlugin.enable,
};
});
Expand Down

0 comments on commit b42a6ee

Please sign in to comment.