fix route check

This commit is contained in:
Tom (plebeius.eth)
2024-07-02 19:23:39 +02:00
parent 56e6ab4e6c
commit 71e2eda3a3
+3 -1
View File
@@ -44,9 +44,11 @@ export const isCatalogView = (pathname: string, params: ParamsType): boolean =>
decodedPathname === `/p/all/catalog` || decodedPathname === `/p/all/catalog` ||
decodedPathname === `/p/all/catalog/settings` || decodedPathname === `/p/all/catalog/settings` ||
decodedPathname === `/p/all/catalog/${timeFilterName}` || decodedPathname === `/p/all/catalog/${timeFilterName}` ||
decodedPathname === `/p/all/catalog/${timeFilterName}/settings` ||
decodedPathname === `/p/subscriptions/catalog` || decodedPathname === `/p/subscriptions/catalog` ||
decodedPathname === `/p/subscriptions/catalog/settings` || decodedPathname === `/p/subscriptions/catalog/settings` ||
decodedPathname === `/p/subscriptions/catalog/${timeFilterName}` decodedPathname === `/p/subscriptions/catalog/${timeFilterName}` ||
decodedPathname === `/p/subscriptions/catalog/${timeFilterName}/settings`
); );
}; };