Skip to content

Commit 9d6da4b

Browse files
committed
fix(contact): cast CONTACT_TOPIC_OPTIONS to satisfy Combobox mutable type
1 parent 3884c2c commit 9d6da4b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/app/(landing)/components/contact/contact-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Turnstile, type TurnstileInstance } from '@marsidev/react-turnstile'
55
import { toError } from '@sim/utils/errors'
66
import { useMutation } from '@tanstack/react-query'
77
import Link from 'next/link'
8-
import { Combobox, Input, Textarea } from '@/components/emcn'
8+
import { Combobox, type ComboboxOption, Input, Textarea } from '@/components/emcn'
99
import { Check } from '@/components/emcn/icons'
1010
import { getEnv } from '@/lib/core/config/env'
1111
import { captureClientEvent } from '@/lib/posthog/client'
@@ -269,7 +269,7 @@ export function ContactForm() {
269269
labelClassName={LANDING_LABEL}
270270
>
271271
<Combobox
272-
options={CONTACT_TOPIC_OPTIONS}
272+
options={CONTACT_TOPIC_OPTIONS as unknown as ComboboxOption[]}
273273
value={form.topic}
274274
selectedValue={form.topic}
275275
onChange={(value) => updateField('topic', value as ContactRequestPayload['topic'])}

0 commit comments

Comments
 (0)