diff --git a/components/Profile.tsx b/components/Profile.tsx index 7a789de..919e92f 100644 --- a/components/Profile.tsx +++ b/components/Profile.tsx @@ -177,11 +177,11 @@ const Profile: React.FC = ({ user, onLogout, lang, onLanguageChang await refreshExercises(); }; - const handleSaveExerciseEdit = () => { + const handleSaveExerciseEdit = async () => { if (editingExercise && editingExercise.name) { - saveExercise(user.id, editingExercise); + await saveExercise(user.id, editingExercise); setEditingExercise(null); - refreshExercises(); + await refreshExercises(); } }; diff --git a/server/prisma/dev.db b/server/prisma/dev.db index 5ee55ae..a981361 100644 Binary files a/server/prisma/dev.db and b/server/prisma/dev.db differ