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:
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,