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)
.then(setComparedAchievements);
}
}, [objectId, shop, userId]);
}, [objectId, shop, userDetails?.id, 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 { TelescopeIcon } from "@primer/octicons-react";
import { useTranslation } from "react-i18next";
import { useNavigate } from "react-router-dom";
import { LockedProfile } from "./locked-profile";
import { ReportProfile } from "../report-profile/report-profile";
import { FriendsBox } from "./friends-box";
@ -66,8 +65,6 @@ export function ProfileContent() {
const { numberFormatter } = useFormat();
const navigate = useNavigate();
const usersAreFriends = useMemo(() => {
return userProfile?.relation?.status === "ACCEPTED";
}, [userProfile]);
@ -148,7 +145,6 @@ export function ProfileContent() {
userStats,
numberFormatter,
t,
navigate,
statsIndex,
]);