mirror of
https://github.com/lukevella/rallly.git
synced 2025-07-25 12:17:26 +02:00
Force guest user (#210)
This commit is contained in:
parent
000d105983
commit
1d768083ee
17 changed files with 111 additions and 146 deletions
|
@ -110,11 +110,7 @@ export const PollContextProvider: React.VoidFunctionComponent<{
|
|||
|
||||
const userAlreadyVoted =
|
||||
user && participants
|
||||
? participants.some((participant) =>
|
||||
user.isGuest
|
||||
? participant.guestId === user.id
|
||||
: participant.userId === user.id,
|
||||
)
|
||||
? participants.some((participant) => participant.userId === user.id)
|
||||
: false;
|
||||
|
||||
const optionIds = parsedOptions.options.map(({ optionId }) => optionId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue