-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Right now the code below is duplicated on client/view/user/user.js and client/view/home/timeline/timeline.js
var points = Points.listPointsFromUser(Meteor.userId()); var totalPoints = 0; points.map(function(x){totalPoints += x.points;}); return totalPoints;
A file with frequent functions should be created and this code should be put there.