diff --git a/apps/web/src/components/poll-context.tsx b/apps/web/src/components/poll-context.tsx index 5ed1d3e1781..fe6837c447f 100644 --- a/apps/web/src/components/poll-context.tsx +++ b/apps/web/src/components/poll-context.tsx @@ -172,6 +172,12 @@ function createOptionsContextValue( targetTimeZone: string, sourceTimeZone: string | null, ): OptionsContextValue { + if (pollOptions.length === 0) { + return { + pollType: "date", + options: [], + }; + } if (pollOptions[0].duration > 0) { return { pollType: "timeSlot", diff --git a/apps/web/src/components/poll/desktop-poll.tsx b/apps/web/src/components/poll/desktop-poll.tsx index b36e1799458..bf7c5685ce7 100644 --- a/apps/web/src/components/poll/desktop-poll.tsx +++ b/apps/web/src/components/poll/desktop-poll.tsx @@ -272,7 +272,7 @@ const DesktopPoll: React.FunctionComponent = () => { "scrollbar-thin hover:scrollbar-thumb-gray-400 scrollbar-thumb-gray-300 scrollbar-track-gray-100 relative z-10 flex-grow overflow-auto scroll-smooth", )} > -
{name ? (
diff --git a/apps/web/src/components/poll/desktop-poll/participant-row.tsx b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
index 2db0d22b1a4..371b07a19fa 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
@@ -38,7 +38,7 @@ export const ParticipantRowView: React.FunctionComponent<{
>
| |