diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte index f025c3f431..0ecea8e1ae 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/components/DappCard.svelte @@ -12,7 +12,7 @@ export let onClick: (() => unknown) | undefined = undefined $: networkIds = Object.values( - dapp.session?.namespaces ?? getPersistedDappNamespacesForDapp(dapp.metadata?.url ?? '') ?? {} + dapp.session?.namespaces ?? getPersistedDappNamespacesForDapp(dapp.metadata?.url ?? '')?.supported ?? {} ).flatMap((namespace) => namespace.chains as NetworkId[]) $: verifiedState = $activeProfileId diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/components/EditSelectionDrawer.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/components/EditSelectionDrawer.svelte index 9a167dc4d8..7809483912 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/components/EditSelectionDrawer.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/components/EditSelectionDrawer.svelte @@ -32,7 +32,7 @@ selections, requiredNamespaces, optionalNamespaces, - persistedDapp?.supported + persistedDapp?.namespaces.supported ) updateSupportedDappNamespacesForDapp(dappMetadata.url, updatedNamespace) if ($selectedDapp?.session) { @@ -59,7 +59,7 @@
diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte index 0ef46d540d..888df6871c 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConfirmConnectionDrawer.svelte @@ -4,7 +4,7 @@ import { DappVerification } from '@auxiliary/wallet-connect/enums' import { clearSessionInitiationRequest, - getPersistedDapp, + getPersistedDappNamespacesForDapp, sessionInitiationRequest, } from '@auxiliary/wallet-connect/stores' import { ISupportedNamespace, SupportedNamespaces } from '@auxiliary/wallet-connect/types' @@ -63,12 +63,12 @@ return {} } - const persistedDapp = $sessionInitiationRequest - ? getPersistedDapp($sessionInitiationRequest.params.proposer.metadata.url) + const persistedNamespaces = $sessionInitiationRequest + ? getPersistedDappNamespacesForDapp($sessionInitiationRequest.params.proposer.metadata.url) : undefined - if (persistedDapp?.supported) { - return persistedDapp.supported + if (persistedNamespaces) { + return persistedNamespaces.supported } const { requiredNamespaces, optionalNamespaces } = $sessionInitiationRequest.params diff --git a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte index 4aae4c2fb2..decf541efb 100644 --- a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte +++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte @@ -1,5 +1,10 @@