UUID generation fixed
This commit is contained in:
3
App.tsx
3
App.tsx
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user