Skip to content

Commit 774b231

Browse files
Update src/components/form-elements/error-message/ErrorMessage.tsx
Co-authored-by: Colin Rotherham <[email protected]>
1 parent ed2dba7 commit 774b231

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/form-elements/error-message/ErrorMessage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const ErrorMessage: FC<ErrorMessageProps> = ({
1212
children,
1313
...rest
1414
}) => {
15-
if (!children || (typeof children !== 'string' && !React.isValidElement(children) && !Array.isArray(children))) {
15+
if (!children) {
1616
return null;
1717
}
1818

0 commit comments

Comments
 (0)