Exercises management fixed

This commit is contained in:
AG
2025-11-25 22:53:41 +02:00
parent fe2883608c
commit e3efc84250
2 changed files with 5 additions and 5 deletions

View File

@@ -71,8 +71,8 @@ const Profile: React.FC<ProfileProps> = ({ user, onLogout, lang, onLanguageChang
setAllUsers(getUsers());
};
const refreshExercises = () => {
setExercises(getExercises(user.id));
const refreshExercises = async () => {
setExercises(await getExercises(user.id));
};
// Snackbar State