Exercise editing fixed
This commit is contained in:
@@ -177,11 +177,11 @@ const Profile: React.FC<ProfileProps> = ({ user, onLogout, lang, onLanguageChang
|
|||||||
await refreshExercises();
|
await refreshExercises();
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSaveExerciseEdit = () => {
|
const handleSaveExerciseEdit = async () => {
|
||||||
if (editingExercise && editingExercise.name) {
|
if (editingExercise && editingExercise.name) {
|
||||||
saveExercise(user.id, editingExercise);
|
await saveExercise(user.id, editingExercise);
|
||||||
setEditingExercise(null);
|
setEditingExercise(null);
|
||||||
refreshExercises();
|
await refreshExercises();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user