Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2021-04-18 23:59:52 +0300
committerdartcafe <github@dartcafe.de>2021-04-18 23:59:52 +0300
commit43e516fd48128c94b045c83674fe5970e61cee2d (patch)
tree79b00434d26a6ed2157f04932e8052873b4b3728 /src/js/store/modules/poll.js
parent5ada3eaef1c0eda81d94a3fe26826313241d929d (diff)
arrow-parens
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'src/js/store/modules/poll.js')
-rw-r--r--src/js/store/modules/poll.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/js/store/modules/poll.js b/src/js/store/modules/poll.js
index 07774c95..656158f9 100644
--- a/src/js/store/modules/poll.js
+++ b/src/js/store/modules/poll.js
@@ -128,7 +128,7 @@ const getters = {
},
participants: (state, getters, rootState) => {
- const participants = rootState.votes.list.map(item => ({
+ const participants = rootState.votes.list.map((item) => ({
userId: item.userId,
displayName: item.displayName,
isNoUser: item.isNoUser,
@@ -136,7 +136,7 @@ const getters = {
}))
// add current user, if not among participants and voting is allowed
- if (!participants.find(item => item.userId === state.acl.userId) && state.acl.userId && state.acl.allowVote) {
+ if (!participants.find((item) => item.userId === state.acl.userId) && state.acl.userId && state.acl.allowVote) {
participants.push({
userId: state.acl.userId,
displayName: state.acl.displayName,
@@ -150,7 +150,7 @@ const getters = {
},
participantsVoted: (state, getters, rootState) => {
- return uniqueArrayOfObjects(rootState.votes.list.map(item => ({
+ return uniqueArrayOfObjects(rootState.votes.list.map((item) => ({
userId: item.userId,
displayName: item.displayName,
isNoUser: item.isNoUser,