diff --git a/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx b/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx index 3fabe7baf..2ddad0fad 100644 --- a/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx +++ b/src/components/forms/poll-options-form/month-calendar/month-calendar.tsx @@ -160,7 +160,8 @@ const MonthCalendar: React.VoidFunctionComponent = ({ "relative flex h-12 items-center justify-center text-sm hover:bg-slate-50 focus:ring-0 focus:ring-offset-0 active:bg-slate-100", { "bg-slate-50 text-slate-400": day.outOfMonth, - "font-bold text-indigo-500": day.today, + "font-bold": day.today, + "text-indigo-500": day.today && !day.selected, "border-r": (i + 1) % 7 !== 0, "border-b": i < datepicker.days.length - 7, "font-normal text-white after:absolute after:-z-0 after:h-8 after:w-8 after:animate-popIn after:rounded-full after:bg-green-500 after:content-['']": diff --git a/src/components/poll/mutations.ts b/src/components/poll/mutations.ts index 32b452d4e..0d84d843f 100644 --- a/src/components/poll/mutations.ts +++ b/src/components/poll/mutations.ts @@ -9,9 +9,10 @@ export const normalizeVotes = ( optionIds: string[], votes: ParticipantForm["votes"], ) => { - return optionIds.map( - (optionId, i) => votes[i] ?? { optionId, type: "no" as const }, - ); + return optionIds.map((optionId, i) => ({ + optionId, + type: votes[i]?.type ?? ("no" as const), + })); }; export const useAddParticipantMutation = () => {