Skip to content

Commit

Permalink
Merge pull request #279 from City-of-Helsinki/TILA-1480
Browse files Browse the repository at this point in the history
fix eventsPerWeek got multiplied
  • Loading branch information
siren authored Apr 12, 2022
2 parents 630d951 + 492168a commit a3d3544
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions admin-ui/src/component/applications/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ export const appEventHours = (
): number => {
const turns = numTurns(startDate, endDate, biWeekly, eventsPerWeek);

const hours =
(turns * eventsPerWeek * apiDurationToMinutes(minDuration)) / 60;
const hours = (turns * apiDurationToMinutes(minDuration)) / 60;
return hours;
};

Expand Down

0 comments on commit a3d3544

Please sign in to comment.