Skip to content

Commit

Permalink
dev: try without location
Browse files Browse the repository at this point in the history
  • Loading branch information
irisdv committed Oct 2, 2023
1 parent f72ad19 commit 64fc75e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/achievements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import AchievementSkeleton from "../components/skeletons/achievementSkeleton";
import { useLocation } from "react-use";

const Achievements: NextPage = () => {
const location = useLocation();
// const location = useLocation();
const { address } = useAccount();
const [userAchievements, setUserAchievements] = useState<
AchievementsDocument[]
Expand Down Expand Up @@ -59,7 +59,8 @@ const Achievements: NextPage = () => {
clearTimeout(timer);
setHasChecked(false);
};
}, [location, address]);
}, [address]);
// location,

// Map through user achievements and check if any are completed
useEffect(() => {
Expand Down

0 comments on commit 64fc75e

Please sign in to comment.