fix Admin Dashboar / rm user notification

This commit is contained in:
2025-12-28 20:20:32 -03:00
parent 10eed4cd26
commit 445dddc1df
2 changed files with 33 additions and 1 deletions

View File

@@ -76,7 +76,7 @@ function UserDashboard({ token, username }) {
});
setNewPerson({ name: '', rut: '', durationDays: 1 });
fetchPeople();
alert('Person registered! Waiting for admin approval.');
// Alert removed for better UX
} catch (err) {
alert('Error: ' + (err.response?.data?.error || err.message));
}