diff --git a/nuxt4/app/components/cata/ModalAsignacionRapida.vue b/nuxt4/app/components/cata/ModalAsignacionRapida.vue index 0fa5ddc..5ae98be 100644 --- a/nuxt4/app/components/cata/ModalAsignacionRapida.vue +++ b/nuxt4/app/components/cata/ModalAsignacionRapida.vue @@ -135,6 +135,15 @@ const paso = ref(1) const puntajeDeseado = ref(40) const categoriasSeleccionadas = ref([]) +// Resetear estado cuando el modal se abre +watch(isOpen, (newValue) => { + if (newValue) { + paso.value = 1 + puntajeDeseado.value = 40 + categoriasSeleccionadas.value = [] + } +}) + // Cálculos const puntajeValido = computed(() => { return puntajeDeseado.value >= 8 && puntajeDeseado.value <= 80 @@ -217,12 +226,6 @@ const aplicarAsignacion = () => { const cerrar = () => { isOpen.value = false - // Resetear estado - setTimeout(() => { - paso.value = 1 - puntajeDeseado.value = 40 - categoriasSeleccionadas.value = [] - }, 300) }