Skip to content

Commit bb87034

Browse files
committed
minor change in getting the user's names
1 parent e6b0784 commit bb87034

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/leaderboard.coffee

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ module.exports = (robot) ->
6969
updateScore = (word, field, username) ->
7070
posRegex = /\+\+/
7171
negRegex = /\-\-/
72-
names = Object.keys(robot.brain.data.users)
72+
users = robot.brain.data.users
73+
names = Object.keys(users).map (key) => users[key].name
7374

7475
# if there is to be `plus` in score
7576
if word.indexOf("++") >= 0

0 commit comments

Comments
 (0)