Skip to content

Commit b078483

Browse files
author
Luke Pearson
authored
Merge pull request #29 from NHSDigital/fix/tjc-disableErrorFromComponents
Fix disableErrorFromComponents removing error message
2 parents ca5741f + 834ce59 commit b078483

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/FormGroup.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const FormGroup = <T extends BaseFormElementRenderProps>(props: FormGroupProps<T
9595
{hint}
9696
</Hint>
9797
) : null}
98-
{!disableErrorFromComponents && error && typeof error === 'string' ? (
98+
{error && typeof error === 'string' ? (
9999
<ErrorMessage id={errorID} {...errorProps}>
100100
{error}
101101
</ErrorMessage>

0 commit comments

Comments
 (0)