fix bug and errors

This commit is contained in:
SlimusMinus
2026-10-06 01:00:10 +03:00
parent 73e3634ec4
commit d94a6782a4
50 changed files with 937 additions and 2642 deletions

View File

@@ -18,7 +18,7 @@ import { useProfile } from "../hooks/useProfile";
export default function ReviewsPage() {
const { t } = useTranslation();
const navigate = useNavigate();
const { user, token, isAuthenticated, updateUser } = useAuthContext();
const { user, isAuthenticated, updateUser } = useAuthContext();
const { fetchProfile } = useProfile();
const [sidebarOpen, setSidebarOpen] = useState(false);
@@ -45,7 +45,6 @@ export default function ReviewsPage() {
reviews, loading, error, submitting, submitError,
loadReviews, submitReview, avgRating, distribution,
} = useReviews({
token,
isAuthenticated,
onAuthRequired: () => setAuthModalOpen(true),
authorFallbackName: profileData.firstName || t('reviews.you'),