Skip to content

Commit 8093b79

Browse files
committed
patch: variable type
1 parent 6582ff5 commit 8093b79

File tree

1 file changed

+2
-2
lines changed
  • app/[locale]/enterprise/_components/ContactForm

1 file changed

+2
-2
lines changed

app/[locale]/enterprise/_components/ContactForm/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type FormState = {
3737
}
3838

3939
type FormErrors = {
40-
email?: string
40+
email?: React.ReactNode
4141
message?: React.ReactNode
4242
general?: string
4343
}
@@ -121,7 +121,7 @@ const EnterpriseContactForm = ({ strings }: EnterpriseContactFormProps) => {
121121
}
122122
}
123123

124-
const validateEmail = (email: string): string | undefined => {
124+
const validateEmail = (email: string): React.ReactNode | undefined => {
125125
const sanitized = sanitizeInput(email)
126126

127127
if (!sanitized) return strings.error.required

0 commit comments

Comments
 (0)