diff --git a/pages/Profesor/index.vue b/pages/Profesor/index.vue index 34ada05..80569be 100644 --- a/pages/Profesor/index.vue +++ b/pages/Profesor/index.vue @@ -199,6 +199,7 @@ export default { } ) .then((res) => { + console.log(res) this.isLoading = false if (res) this.premiaciones = res.data }) @@ -234,7 +235,7 @@ export default { this.Profesor.adscripcion = localStorage.getItem('adscripcion') this.Profesor.numeroTrabajador = localStorage.getItem('numeroTrabajador') await this.fetchPremiaciones() - if (this.premiaciones.length === 1) { + if (this.premiaciones.length === 1 && this.premiaciones.length > 0) { await this.yaRegistrado() } },