fix(frontend): incorrect URLs in stats page

This commit is contained in:
2026-03-03 18:36:46 +00:00
parent d11c5acb77
commit 531ddb0467
7 changed files with 98 additions and 34 deletions

View File

@@ -3,12 +3,13 @@ import axios from "axios";
import { Outlet, useLocation, useNavigate } from "react-router-dom";
import StatsStyling from "../styles/stats_styling";
const API_BASE_URL = import.meta.env.VITE_BACKEND_URL
type ProfileResponse = {
user?: Record<string, unknown>;
};
const styles = StatsStyling;
const API_BASE_URL = "http://localhost:5000";
const getUserLabel = (user: Record<string, unknown> | null) => {
if (!user) {