fix(subplebbit): selecting the time filter would bug the header title and topbar

This commit is contained in:
plebeius.eth
2024-01-18 13:48:18 +01:00
parent feba4ed685
commit 90f9d3546c

View File

@@ -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 => {