Modificaciones

This commit is contained in:
santiago
2025-10-03 14:45:35 -06:00
parent 4ff66e81c7
commit b0f744ef14
+1 -2
View File
@@ -31,7 +31,7 @@ export default function Page() {
try {
const response = await axiosInstance.post('/participante-evento/decode-token', { token: rawValue });
if (response.data.success) {
if (response.data) {
// Token válido
setToken(rawValue);
setTokenValid(true);
@@ -75,7 +75,6 @@ export default function Page() {
console.log('Asistencia registrada:', response.data);
toast.success('✅ Asistencia registrada correctamente');
}
} catch (err) {
console.error('Error en la petición:', err);
setStatusMessage('❌ Error de red al registrar asistencia');