Skip to content

Commit

Permalink
Undo poopy attempt to reduce calls to tm.io API
Browse files Browse the repository at this point in the history
  • Loading branch information
Bux42 committed Jul 22, 2024
1 parent 74a3a15 commit 5cf6791
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/pages/maps/[mapUId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ const Home = (): JSX.Element => {
isFetching: isFetchingReplays,
} = useMapReplays(mapUId);

const { user } = useContext(AuthContext);
const mapInfoQueryKey = user ? mapUId : undefined;
const { data: mapInfo } = useMapInfo(mapInfoQueryKey);
const { data: mapInfo } = useMapInfo(mapUId);

const selectedReplaysWithValidSectors = useMemo(
() => filterReplaysWithValidSectorTimes(selectedReplayData, mapReplaysResult?.replays || []),
Expand Down

0 comments on commit 5cf6791

Please sign in to comment.