fix: removing unused navigate

This commit is contained in:
Chubby Granny Chaser 2025-01-15 17:02:40 +00:00
parent 08bcf09641
commit c59b039eb4
No known key found for this signature in database
2 changed files with 1 additions and 5 deletions

View file

@ -44,7 +44,7 @@ export default function Achievements() {
.getComparedUnlockedAchievements(objectId, shop as GameShop, userId) .getComparedUnlockedAchievements(objectId, shop as GameShop, userId)
.then(setComparedAchievements); .then(setComparedAchievements);
} }
}, [objectId, shop, userId]); }, [objectId, shop, userDetails?.id, userId]);
const otherUserId = userDetails?.id === userId ? null : userId; const otherUserId = userDetails?.id === userId ? null : userId;

View file

@ -7,7 +7,6 @@ import { SPACING_UNIT } from "@renderer/theme.css";
import * as styles from "./profile-content.css"; import * as styles from "./profile-content.css";
import { TelescopeIcon } from "@primer/octicons-react"; import { TelescopeIcon } from "@primer/octicons-react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import { LockedProfile } from "./locked-profile"; import { LockedProfile } from "./locked-profile";
import { ReportProfile } from "../report-profile/report-profile"; import { ReportProfile } from "../report-profile/report-profile";
import { FriendsBox } from "./friends-box"; import { FriendsBox } from "./friends-box";
@ -66,8 +65,6 @@ export function ProfileContent() {
const { numberFormatter } = useFormat(); const { numberFormatter } = useFormat();
const navigate = useNavigate();
const usersAreFriends = useMemo(() => { const usersAreFriends = useMemo(() => {
return userProfile?.relation?.status === "ACCEPTED"; return userProfile?.relation?.status === "ACCEPTED";
}, [userProfile]); }, [userProfile]);
@ -148,7 +145,6 @@ export function ProfileContent() {
userStats, userStats,
numberFormatter, numberFormatter,
t, t,
navigate,
statsIndex, statsIndex,
]); ]);