diff --git a/src/features/PreferencesPopup/store/hooks/index.tsx b/src/features/PreferencesPopup/store/hooks/index.tsx index ce24b77a..44d55c48 100644 --- a/src/features/PreferencesPopup/store/hooks/index.tsx +++ b/src/features/PreferencesPopup/store/hooks/index.tsx @@ -14,19 +14,18 @@ import { useSearch } from './useSearch' export const usePreferences = () => { const [firstLoad, setFirstLoad] = useLocalStore({ - // defaultValue: true, - defaultValue: false, + defaultValue: true, key: 'preferences_first_load', validator: isBoolean, }) const { close, isOpen, - // open, + open, } = useToggle() const { - // fetchInitialSports, + fetchInitialSports, onSportSelect, selectedSports, setInitialSelectedSports, @@ -55,7 +54,7 @@ export const usePreferences = () => { } = useSelectedTournaments(selectedSports, tournaments) const { - // fetchInitialPreferences, + fetchInitialPreferences, isApplyButtonDisabled, isFetching: isFetchingPrefernces, isSaving, @@ -79,10 +78,10 @@ export const usePreferences = () => { ]) const openPopup = useCallback(() => { - // fetchInitialPreferences() - // fetchInitialSports() - // open() - }, [/* fetchInitialPreferences, fetchInitialSports, open */]) + fetchInitialPreferences() + fetchInitialSports() + open() + }, [fetchInitialPreferences, fetchInitialSports, open]) const closePopup = () => { reset()