mirror of
https://github.com/plebbit/seedit.git
synced 2026-05-19 14:19:24 -04:00
fix(subplebbit): selecting the time filter would bug the header title and topbar
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user