Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions routes/root.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ route.get('/stats', (req, res) => {
res.render('pages/stats', {
participants: data[0],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets's do it for all the values

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, moved the logic to getCounts functions as it's better to have the check there only. Ref #182

claims: data[1],
accepted: data[2],
totalclaimed: data[3],
accepted: data[2] || 0,
totalclaimed: data[3] || 0,
menu: { stats: 'active' }
})
})
Expand Down