Skip to content

Commit

Permalink
bugfix: max->min
Browse files Browse the repository at this point in the history
  • Loading branch information
paolini committed Feb 22, 2024
1 parent 7bb44ba commit a4d6ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventsAndVisitorsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ async function loadEvents() {

// console.log(valid_events)

const number_of_events = Math.max(valid_events.length,4)
const number_of_events = Math.min(valid_events.length,4)

let html = '';
for (var i = 0; i < number_of_events; i++) {
Expand Down

0 comments on commit a4d6ce4

Please sign in to comment.