Skip to content

Commit

Permalink
fix: old code
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Sep 20, 2024
1 parent b0f14e9 commit b0594c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b0594c2

Please sign in to comment.