From 90f9d3546c4fcd1d03fdcdcd3e8c5b7b26e13c35 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Thu, 18 Jan 2024 13:48:18 +0100 Subject: [PATCH] fix(subplebbit): selecting the time filter would bug the header title and topbar --- src/lib/utils/view-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/view-utils.ts b/src/lib/utils/view-utils.ts index ca0c3967..d8d11b6d 100644 --- a/src/lib/utils/view-utils.ts +++ b/src/lib/utils/view-utils.ts @@ -57,7 +57,7 @@ export const isProfileDownvotedView = (pathname: string): boolean => { }; export const isHomeView = (pathname: string, params: ParamsType): boolean => { - return pathname === '/' || sortTypes.includes(pathname) || (timeFilterNames.includes(params.timeFilterName as TimeFilterKey) && !pathname.startsWith('/p/all')); + return pathname === '/' || sortTypes.includes(pathname) || (timeFilterNames.includes(params.timeFilterName as TimeFilterKey) && !pathname.startsWith('/p/')); }; export const isHomeAboutView = (pathname: string): boolean => {