premiaciones no mostrar inactivas

This commit is contained in:
2022-06-01 20:34:02 -05:00
parent d632711f66
commit 6bbf3bfcba
+2 -1
View File
@@ -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()
}
},