Skip to content

Commit 93de694

Browse files
committed
fix: null check
1 parent f27312b commit 93de694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Shared/Components/FormFieldWrapper/FormFieldWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const FormFieldWrapper = ({
3333
}: Required<FormFieldWrapperProps>) => {
3434
const isRowLayout = layout === 'row'
3535
const itemContainerClassName = isRowLayout ? 'dc__mxw-250 w-100 mxh-36 dc__align-self-stretch' : ''
36-
const formError = Array.isArray(error) ? error?.[0] : error
36+
const formError = Array.isArray(error) ? error[0] : error
3737

3838
return (
3939
<div className={`flex left column top dc__gap-4 ${fullWidth ? 'w-100' : ''}`}>

0 commit comments

Comments
 (0)