We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4988661 commit b2edf4cCopy full SHA for b2edf4c
1 file changed
src/stores/votes.ts
@@ -115,7 +115,11 @@ export const useVotesStore = defineStore('votes', {
115
(user) => user.id === sessionStore.currentUser?.id,
116
)
117
118
- if (currentUserIndex < 0 && !pollStore.status.isExpired) {
+ if (
119
+ currentUserIndex < 0
120
+ && !pollStore.status.isExpired
121
+ && sessionStore.currentUser.type !== 'public'
122
+ ) {
123
// add current user to the begining of the list if not already present
124
// and if the poll is not expired
125
participants.unshift(sessionStore.currentUser)
0 commit comments