UUID generation fixed

This commit is contained in:
AG
2025-11-28 18:20:22 +02:00
parent 245b8d3961
commit 4c632e164e
7 changed files with 26 additions and 10 deletions

View File

@@ -12,6 +12,7 @@ import { TabView, WorkoutSession, WorkoutSet, WorkoutPlan, User, Language } from
import { getSessions, saveSession, deleteSession, getPlans } from './services/storage';
import { getCurrentUserProfile, getMe } from './services/auth';
import { getSystemLanguage } from './services/i18n';
import { generateId } from './utils/uuid';
function App() {
const [currentUser, setCurrentUser] = useState<User | null>(null);
@@ -86,7 +87,7 @@ function App() {
const currentWeight = startWeight || profile?.weight || 70;
const newSession: WorkoutSession = {
id: crypto.randomUUID(),
id: generateId(),
startTime: Date.now(),
userBodyWeight: currentWeight,
sets: [],