Skip to content

Commit b2edf4c

Browse files
committed
Do not show public share as paticipant
Signed-off-by: dartcafe <github@dartcafe.de>
1 parent 4988661 commit b2edf4c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/stores/votes.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ export const useVotesStore = defineStore('votes', {
115115
(user) => user.id === sessionStore.currentUser?.id,
116116
)
117117

118-
if (currentUserIndex < 0 && !pollStore.status.isExpired) {
118+
if (
119+
currentUserIndex < 0
120+
&& !pollStore.status.isExpired
121+
&& sessionStore.currentUser.type !== 'public'
122+
) {
119123
// add current user to the begining of the list if not already present
120124
// and if the poll is not expired
121125
participants.unshift(sessionStore.currentUser)

0 commit comments

Comments
 (0)