Skip to content

Commit 809e7a7

Browse files
Simplify function
1 parent 18c9069 commit 809e7a7

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

assets/js/users.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const listBy = (username, {metas: [{points}, ..._rest]}) => {
1919
// {username: username, points: points}
2020
}
2121

22-
const showPoints = usersElem => ({userId, points}) => {
22+
const showPoints = ({userId, points}) => {
2323
const userElem = document.querySelector(`.${userId}.user-estimate`)
2424
userElem.innerHTML = points
2525
}

assets/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
"watch": "webpack --mode development --watch"
77
},
88
"dependencies": {
9-
"ramda": "^0.26.1",
109
"phoenix": "file:../deps/phoenix",
11-
"phoenix_html": "file:../deps/phoenix_html"
10+
"phoenix_html": "file:../deps/phoenix_html",
11+
"ramda": "^0.26.1"
1212
},
1313
"devDependencies": {
1414
"@babel/core": "^7.0.0",

config/cards.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ config :pointing_party,
3434
description: """
3535
Update our existing authentication flow to use the newly created Auth module.
3636
"""
37-
},
37+
}
3838
]

0 commit comments

Comments
 (0)