diff --git a/src/features/Matches/hooks.tsx b/src/features/Matches/hooks.tsx index 95eb4d60..2235bb4e 100644 --- a/src/features/Matches/hooks.tsx +++ b/src/features/Matches/hooks.tsx @@ -13,8 +13,6 @@ import { useRequest } from 'hooks' import { usePreferencesStore } from 'features/PreferencesPopup' import { isMobileDevice } from 'config/userAgent' -import { checkUrlParams } from 'helpers/parseUrlParams/parseUrlParams' - import { prepareMatches } from './helpers/prepareMatches' export type Match = ReturnType[number] @@ -68,10 +66,10 @@ export const useMatches = ({ fetch }: Props) => { isFetching, ]) - const dateParam = checkUrlParams('date') - useEffect(() => { - if (dateParam) { + const isDefaultUrl = window.location.href.slice(0, -1) === window.location.origin + + if (!isDefaultUrl) { fetchMatches(0).then(setMatches) pageRef.current = 1 }