Modificaciones
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user