Excessive logging deprecated
This commit is contained in:
@@ -81,7 +81,7 @@ const Profile: React.FC<ProfileProps> = ({ user, onLogout, lang, onLanguageChang
|
||||
|
||||
const refreshExercises = async () => {
|
||||
const exercises = await getExercises(user.id);
|
||||
console.log('Refreshed exercises:', exercises);
|
||||
|
||||
setExercises(exercises);
|
||||
};
|
||||
|
||||
@@ -172,9 +172,9 @@ const Profile: React.FC<ProfileProps> = ({ user, onLogout, lang, onLanguageChang
|
||||
// Exercise Management Handlers
|
||||
const handleArchiveExercise = async (ex: ExerciseDef, archive: boolean) => {
|
||||
const updated = { ...ex, isArchived: archive };
|
||||
console.log('Archiving exercise:', updated);
|
||||
|
||||
await saveExercise(user.id, updated);
|
||||
console.log('Archive complete, refreshing...');
|
||||
|
||||
await refreshExercises();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user