Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ezequielramos committed Jun 12, 2024
1 parent b12e093 commit e61407c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/controllers/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,15 @@ function resetEvents() {
}

function getEvents() {
return Object.values(events).forEach(event => {

const eventList = Object.values(events);
for (const event of eventList) {
if (event) {
event.looks_like_confidence = event.confidence;
}
});
}

return eventList;
}

export { createEvent, getEvent, resetEvents, getEvents };

0 comments on commit e61407c

Please sign in to comment.