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 0ecea8e1ae..f025c3f431 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 ?? '')?.supported ?? {}
+ dapp.session?.namespaces ?? getPersistedDappNamespacesForDapp(dapp.metadata?.url ?? '') ?? {}
).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 7809483912..9a167dc4d8 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?.namespaces.supported
+ persistedDapp?.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 888df6871c..0ef46d540d 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,
- getPersistedDappNamespacesForDapp,
+ getPersistedDapp,
sessionInitiationRequest,
} from '@auxiliary/wallet-connect/stores'
import { ISupportedNamespace, SupportedNamespaces } from '@auxiliary/wallet-connect/types'
@@ -63,12 +63,12 @@
return {}
}
- const persistedNamespaces = $sessionInitiationRequest
- ? getPersistedDappNamespacesForDapp($sessionInitiationRequest.params.proposer.metadata.url)
+ const persistedDapp = $sessionInitiationRequest
+ ? getPersistedDapp($sessionInitiationRequest.params.proposer.metadata.url)
: undefined
- if (persistedNamespaces) {
- return persistedNamespaces.supported
+ if (persistedDapp?.supported) {
+ return persistedDapp.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 decf541efb..4aae4c2fb2 100644
--- a/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte
+++ b/packages/desktop/views/dashboard/drawers/dapp-config/views/ConnectedDappsDrawer.svelte
@@ -1,10 +1,5 @@