From b0594c2f744f8ab266cf8ebe64c3f4356d9e795d Mon Sep 17 00:00:00 2001 From: Joabesv Date: Thu, 19 Sep 2024 21:19:17 -0300 Subject: [PATCH] fix: old code --- src/components/Modal.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/Modal.vue b/src/components/Modal.vue index 96b801e..00d5612 100644 --- a/src/components/Modal.vue +++ b/src/components/Modal.vue @@ -180,6 +180,13 @@ const transformed = computed(() => { }); const oldComponentObject = computed(() => convertDisciplina(component.value)) +const totalRequests = computed(() => { + return matriculas || [].reduce( + (a, c) => (c.includes(this.disciplina.id.toString()) ? a + 1 : a), + 0 + ); +}) +const computeKicksForecast = computed(() => (kicks.value.length * component.value.vagas) / totalRequests) watch(() => props.value.dialog, (v) => { if(v) {