Skip to content

Commit

Permalink
fix displayed dapps
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkNerdi committed Jan 22, 2024
1 parent 31d9c36 commit 51a8aef
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@
$: connectedDappsForProfile = $connectedDapps.filter(
(dapp) => !!getPersistedDappNamespacesForDapp(dapp.metadata?.url)
)
$: displayedDapps = connectedDappsForProfile.filter((dapp) => !dapp.session || selectedIndex === 0)
$: displayedDapps = connectedDappsForProfile.filter(
(dapp) => (selectedIndex === 0 && !!dapp.session) || (selectedIndex === 1 && !dapp.session)
)
function onDappCardClick(connectedDapp: IConnectedDapp): void {
setSelectedDapp(connectedDapp)
Expand Down

0 comments on commit 51a8aef

Please sign in to comment.