From 23f70c96b838b8a4f1ce37c28fe13a4ed9f0ad23 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Thu, 6 Mar 2025 15:40:11 +0100 Subject: [PATCH] Update topbar.tsx --- src/components/topbar/topbar.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/topbar/topbar.tsx b/src/components/topbar/topbar.tsx index d148e1d4..64a8b9a0 100644 --- a/src/components/topbar/topbar.tsx +++ b/src/components/topbar/topbar.tsx @@ -144,7 +144,7 @@ const TopBarMobile = ({ subplebbitAddress }: { subplebbitAddress: string }) => { const params = useParams(); const isInAllView = isAllView(location.pathname); const isInCatalogView = isCatalogView(location.pathname, params); - const isInSubscriptionsView = isSubscriptionsView(location.pathname, useParams()); + const isInSubscriptionsView = isSubscriptionsView(location.pathname, params); const selectValue = isInAllView ? 'all' : isInSubscriptionsView ? 'subscriptions' : subplebbitAddress; const { accountSubplebbits } = useAccountSubplebbits(); @@ -160,7 +160,7 @@ const TopBarMobile = ({ subplebbitAddress }: { subplebbitAddress: string }) => { const subplebbitAddress = address?.includes('.') ? address : Plebbit.getShortAddress(address); return ( ); })}